How to use the tr46.toASCII function in tr46

To help you get started, we’ve selected a few tr46 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 stasm / innerself / node_modules / whatwg-url / lib / url-state-machine.js View on Github external
function domainToASCII(domain, beStrict = false) {
  const result = tr46.toASCII(domain, {
    checkBidi: true,
    checkHyphens: false,
    checkJoiners: true,
    useSTD3ASCIIRules: beStrict,
    verifyDNSLength: beStrict
  });
  if (result === null) {
    return failure;
  }
  return result;
}
github sx1989827 / DOClever / node_modules / whatwg-url / lib / url-state-machine.js View on Github external
function domainToASCII(domain, beStrict = false) {
  const result = tr46.toASCII(domain, {
    checkBidi: true,
    checkHyphens: false,
    checkJoiners: true,
    useSTD3ASCIIRules: beStrict,
    verifyDNSLength: beStrict
  });
  if (result === null) {
    return failure;
  }
  return result;
}
github foo-software / lighthouse-check-action / node_modules / data-urls / node_modules / whatwg-url / lib / url-state-machine.js View on Github external
function domainToASCII(domain, beStrict = false) {
  const result = tr46.toASCII(domain, {
    checkBidi: true,
    checkHyphens: false,
    checkJoiners: true,
    useSTD3ASCIIRules: beStrict,
    verifyDNSLength: beStrict
  });
  if (result === null) {
    return failure;
  }
  return result;
}
github zubairghori / Ultimate_todo_list / node_modules / whatwg-url / lib / url-state-machine.js View on Github external
function domainToASCII(domain, beStrict = false) {
  const result = tr46.toASCII(domain, {
    checkBidi: true,
    checkHyphens: false,
    checkJoiners: true,
    useSTD3ASCIIRules: beStrict,
    verifyDNSLength: beStrict
  });
  if (result === null) {
    return failure;
  }
  return result;
}

tr46

An implementation of the Unicode UTS #46: Unicode IDNA Compatibility Processing

MIT
Latest version published 1 year ago

Package Health Score

68 / 100
Full package analysis