How to use the idna-uts46-hx.toUnicode function in idna-uts46-hx

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
}

idna-uts46-hx

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

MIT
Latest version published 20 days ago

Package Health Score

83 / 100
Full package analysis

Popular idna-uts46-hx functions