Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function normalize(name) { return name ? uts46.toAscii(name, { useStd3ASCII: true, transitional: false }) : name; }
Convert Domain Names correctly from IDN to Punycode and vice-versa and offer TR46 processing.