{"name":"tr46","version":"5.1.0","engines":{"node":">=18"},"description":"An implementation of the Unicode UTS #46: Unicode IDNA Compatibility Processing","main":"index.js","scripts":{"test":"node --test","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.3.1"},"devDependencies":{"@domenic/eslint-config":"^4.0.1","@unicode/unicode-16.0.0":"^1.6.5","eslint":"^9.22.0","globals":"^16.0.0","regenerate":"^1.4.2"},"unicodeVersion":"16.0.0","_id":"tr46@5.1.0","gitHead":"a034468f6f484d092da6ec24bc82cac4d2d4b596","bugs":{"url":"https://github.com/jsdom/tr46/issues"},"homepage":"https://github.com/jsdom/tr46#readme","_nodeVersion":"23.7.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-IUWnUK7ADYR5Sl1fZlO1INDUhVhatWl7BtJWsIhwJ0UAK7ilzzIa8uIqOO/aYVWHZPJkKbEL+362wrzoeRF7bw==","shasum":"4a077922360ae807e172075ce5beb79b36e4a101","tarball":"http://registry-npm.ywwl.com/tr46/download/tr46-5.1.0.tgz","fileCount":7,"unpackedSize":225896,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF4OxWwdRtlyxr1z+P780l3Yo2G+yWfywexXvonCffyEAiEAxYQp0cgm3UZlKtmm8w531w1u6g4qamCBz/LqG8OTGyw="}],"size":64008,"noattachment":false,"key":"/tr46/-/tr46-5.1.0.tgz"},"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tr46_5.1.0_1742021399096_0.8984161523183427"},"_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":1742021399284,"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"}],"_cnpm_publish_time":1742021399284,"dist-tags":{"latest":"7.0.0"}}