{"name":"tr46","version":"3.0.0","engines":{"node":">=12"},"description":"An implementation of the Unicode UTS #46: Unicode IDNA Compatibility Processing","main":"index.js","scripts":{"test":"mocha","lint":"eslint .","pretest":"node scripts/getLatestTests.js","prepublish":"node scripts/generateMappingTable.js && node scripts/generateRegexes.js"},"repository":{"type":"git","url":"git+https://github.com/jsdom/tr46.git"},"keywords":["unicode","tr46","uts46","punycode","url","whatwg"],"author":{"name":"Sebastian Mayr","email":"npm@smayr.name"},"contributors":[{"name":"Timothy Gu","email":"timothygu99@gmail.com"}],"license":"MIT","dependencies":{"punycode":"^2.1.1"},"devDependencies":{"@domenic/eslint-config":"^1.4.0","@unicode/unicode-14.0.0":"^1.2.1","eslint":"^7.32.0","minipass-fetch":"^1.4.1","mocha":"^9.1.1","regenerate":"^1.4.2"},"unicodeVersion":"14.0.0","gitHead":"e937be8d9c04b7938707fc3701e50118b7c023a5","bugs":{"url":"https://github.com/jsdom/tr46/issues"},"homepage":"https://github.com/jsdom/tr46#readme","_id":"tr46@3.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"integrity":"sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==","shasum":"555c4e297a950617e8eeddef633c87d4d9d6cbf9","tarball":"http://registry-npm.ywwl.com/tr46/download/tr46-3.0.0.tgz","fileCount":7,"unpackedSize":215265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2+J8CRA9TVsSAnZWagAAFVAP/2+xiOh7cHM6drQTLXIc\nRoTxu/AezimzcDI56UGVW/+T5HaHf/Aku787Mn657F+8mzPSLyyIqxsdRoWc\nHN+FOjtRNB27xPhicrPHDreLSKw1ABElLFjssR0tAtnsKLTJklpBoa7gBPn4\nbF8u60l1+Yvhs5hw/HVf0xI1qdiIqQOI9v+0ebc9en8mw3uiINhjxgf+G6Ty\nNaH4zs+A9zDkUU48cCaCJgKlU/P6pQc7O3LYIi1oPc2RyZUQcfzBtYvN1UO5\nkVVeZlDqCOLlcWFMCOk9EUVjl7KkGK2zV9Si0vTnbbhxjdVoYSUY8BszeW7i\nsHILvka7+9gjg+zI99TTI+va6TEX+EXmjFe3zwwieC4w5omzY8pxDjcgsd6Z\nqpEu48U/PjJOwHUhHhc2AeePQTI1RtxGVA9jBRahReBADn2C7Ekc1qdofnRM\n6Ogn0kuv1UPlJoVoArgtKZPACZ5q5qgdmonFzJe6/hiTPy6/AXXHC7L3mcQt\nz+jecXDn1ZRqyn3tcAcYxY26Iro/B/TNutBUv++zTAES4hjkjkaHE+Sv3i1/\nYwOsMDXd+naVKfU3+POVrY7ylPAyIX4eb+vy+9W8TEVCXeuKoH+WHUjjVQOx\ngmYxBM+VO9aBl/cs+z6cDWA+Vgg9+BHXXkgr9181YPWjoDQj9SBxaLT/juKr\neff0\r\n=DKln\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRK32xp1FNn2Ge2Obbww786y3Y4GjqKpINwuFGsAw0sAiAlWUu2ocpO90EKon+ggWcp6XzSoLNkiQT4hoEmYbbiuQ=="}],"size":61210,"noattachment":false,"key":"/tr46/-/tr46-3.0.0.tgz"},"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"domenic","email":"d@domenic.me"},{"name":"sebmaster","email":"sebmaster16@gmail.com"},{"name":"zirro","email":"code@zirro.se"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tr46_3.0.0_1633302184390_0.5771107328600107"},"_hasShrinkwrap":false,"readme":"# tr46\n\nAn JavaScript implementation of [Unicode Technical Standard #46: Unicode IDNA Compatibility Processing](https://unicode.org/reports/tr46/).\n\n## API\n\n### `toASCII(domainName[, options])`\n\nConverts a string of Unicode symbols to a case-folded Punycode string of ASCII symbols.\n\nAvailable options:\n\n* [`checkBidi`](#checkbidi)\n* [`checkHyphens`](#checkhyphens)\n* [`checkJoiners`](#checkjoiners)\n* [`ignoreInvalidPunycode`](#ignoreinvalidpunycode)\n* [`transitionalProcessing`](#transitionalprocessing)\n* [`useSTD3ASCIIRules`](#usestd3asciirules)\n* [`verifyDNSLength`](#verifydnslength)\n\n### `toUnicode(domainName[, options])`\n\nConverts a case-folded Punycode string of ASCII symbols to a string of Unicode symbols.\n\nAvailable options:\n\n* [`checkBidi`](#checkbidi)\n* [`checkHyphens`](#checkhyphens)\n* [`checkJoiners`](#checkjoiners)\n* [`ignoreInvalidPunycode`](#ignoreinvalidpunycode)\n* [`transitionalProcessing`](#transitionalprocessing)\n* [`useSTD3ASCIIRules`](#usestd3asciirules)\n\n## Options\n\n### `checkBidi`\n\nType: `boolean`\nDefault value: `false`\nWhen set to `true`, any bi-directional text within the input will be checked for validation.\n\n### `checkHyphens`\n\nType: `boolean`\nDefault value: `false`\nWhen set to `true`, the positions of any hyphen characters within the input will be checked for validation.\n\n### `checkJoiners`\n\nType: `boolean`\nDefault value: `false`\nWhen set to `true`, any word joiner characters within the input will be checked for validation.\n\n### `ignoreInvalidPunycode`\n\nType: `boolean`\nDefault value: `false`\nWhen set to `true`, invalid Punycode strings within the input will be allowed.\n\n### `transitionalProcessing`\n\nType: `boolean`\nDefault value: `false`\nWhen set to `true`, uses [transitional (compatibility) processing](https://unicode.org/reports/tr46/#Compatibility_Processing) of the deviation characters.\n\n### `useSTD3ASCIIRules`\n\nType: `boolean`\nDefault value: `false`\nWhen set to `true`, input will be validated according to [STD3 Rules](http://unicode.org/reports/tr46/#STD3_Rules).\n\n### `verifyDNSLength`\n\nType: `boolean`\nDefault value: `false`\nWhen set to `true`, the length of each DNS label within the input will be checked for validation.\n","publish_time":1633302184584,"_cnpm_publish_time":1633302184584,"dist-tags":{"latest":"7.0.0"}}