{"name":"tr46","version":"4.0.0","engines":{"node":">=14"},"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.3.0"},"devDependencies":{"@domenic/eslint-config":"^3.0.0","@unicode/unicode-15.0.0":"^1.3.1","eslint":"^8.32.0","minipass-fetch":"^3.0.1","mocha":"^10.2.0","regenerate":"^1.4.2"},"unicodeVersion":"15.0.0","gitHead":"cba76a80a52d775129001110ca8c3d22ed3e6245","bugs":{"url":"https://github.com/jsdom/tr46/issues"},"homepage":"https://github.com/jsdom/tr46#readme","_id":"tr46@4.0.0","_nodeVersion":"19.2.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ypD+VaTN1WUKb+rvVGVCbhnFxAjlQWTHZXz3Q+sUOBXTuxWFv2ZF0guJav45fLdvMLFq5Le4Li9o0Bs56CNLcQ==","shasum":"0a89d333bafbd1d854d82fdf89e34f38d04d0918","tarball":"http://registry-npm.ywwl.com/tr46/download/tr46-4.0.0.tgz","fileCount":7,"unpackedSize":218159,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1WIi7j5sgu1F+Zc7R58vl1lUN/aW7JKM/GTGMj/iIDwIhAJFKHA3/tYRZcGJzIvnFGPt3ajHLuAVamBhHIOjsB6y6"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzfvYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/GQ/9EL2CtWhoX4DCBmhWRxFTvTKCmT5/00bI/90ff6C55BEHtNTQ\r\n2dFtX4tYZNivQWNpMaPLqEyZnyLq8oHBHlYIHbe3oe1pB6Ss0SeHUliU1ljj\r\n4SFuQ41hBtW3ZBEJ9lAMtvHv+a8pXq9H41LwYi2MaiU19bTbWYumgJm3gojZ\r\n6POVshJSgvCndt0/DMZbj5Oq+VEueE5WLwfnqOcUrsWArWRTJXOb5pgFcedv\r\nnOtjSf1H+u10mlGVvtheDZjgxHHzwQ5m0SxkI4NBgDAq0C0dfNnGoeP4F9/L\r\n+gtNnXsiPLJ8BrTP9WiobWg5Inqc6L1bTVaGpSgGhyvBgBHNTfZ5mE1Ud/qi\r\ntEPgIu6E9td8Z9oaqqOFdpru4uGWc5L6g527i8Ch0iiqPMkIliUaZsl/8kUr\r\nzhkUEVBzY8UyRMe/CER+C18oHO2ttInFsA9WrZI76MrUyrSuE0cYjJeQZ0ng\r\nLcQ7IpInvcH8EtsQqduy18mHaEoYKrxmyreUVHS4NlQ6caoGk7sNQf5WFg8F\r\nZt+JovZLxKHF6ggftcokTHD/q83K4NN1C44lVeIUvPYTSx1d8uqmn9vt94OJ\r\nolKzIQlyc1epUh3AK0ulZQxuOUhEOq+4vC9LAlSosdBGuboOot+LtnLZL1QQ\r\nFoWaB7h3TfvoeLVAhnHvmiVEpF/uQhFnGaA=\r\n=ZqXb\r\n-----END PGP SIGNATURE-----\r\n","size":61977,"noattachment":false,"key":"/tr46/-/tr46-4.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_4.0.0_1674443736590_0.4993116147482981"},"_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":1674443736813,"_cnpm_publish_time":1674443736813,"dist-tags":{"latest":"7.0.0"}}