Skip to content
On this page

normalize ​

Normalizes ENS name to UTS46.

Import ​

ts
import { normalize } from 'viem/ens'

Usage ​

ts
import { normalize } from 'viem/ens'

normalize('wagmi-d𝝣v.eth') 
// 'wagmi-dΞΎv.eth'

Returns ​

string

The normalized ENS label.

Parameters ​

name ​

  • Type: string

A ENS name.

Released under the MIT License.