How to use idna-uts46-hx - 3 common examples

To help you get started, we’ve selected a few idna-uts46-hx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github danfinlay / eth-ens-namehash / index.js View on Github external
function normalize(name) {
  return name ? uts46.toUnicode(name, {useStd3ASCII: true, transitional: false}) : name
}
github unstoppabledomains / resolution / src / ens / namehash.ts View on Github external
export function normalize(name: string): string {
  return name ? uts46.toUnicode(name, { useStd3ASCII: true, transitional: false }) : name
}
github xf00f / web3x / web3x / src / ens / registry / namehash.ts View on Github external
function normalize(name) {
  return name ? uts46.toAscii(name, { useStd3ASCII: true, transitional: false }) : name;
}

idna-uts46-hx

Convert Domain Names correctly from IDN to Punycode and vice-versa and offer TR46 processing.

MIT
Latest version published 1 month ago

Package Health Score

83 / 100
Full package analysis

Popular idna-uts46-hx functions