{"name":"tr46","version":"5.0.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":"^3.0.0","@unicode/unicode-15.1.0":"^1.5.2","eslint":"^8.53.0","regenerate":"^1.4.2"},"unicodeVersion":"15.1.0","_id":"tr46@5.0.0","gitHead":"d6cd9a73bb9eb4b3defb50c348db2a60704d1367","bugs":{"url":"https://github.com/jsdom/tr46/issues"},"homepage":"https://github.com/jsdom/tr46#readme","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==","shasum":"3b46d583613ec7283020d79019f1335723801cec","tarball":"http://registry-npm.ywwl.com/tr46/download/tr46-5.0.0.tgz","fileCount":7,"unpackedSize":220527,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnQ0KiAombfYeg0HPkl0t4Om5KWeCVwTCs8RU7UON/mgIhAI27PbxLZLonzxSJE85Rb80kTT/AaV8nMifWc5+Z3KCC"}],"size":62670,"noattachment":false,"key":"/tr46/-/tr46-5.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_5.0.0_1699160109646_0.3188651946817458"},"_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":1699160109811,"_cnpm_publish_time":1699160109811,"dist-tags":{"latest":"7.0.0"}}