How to use the idna-uts46-hx.toAscii 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 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