{"name":"tr46","version":"4.1.1","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":"b5302aff326ed603602935b3944e5be2fc5b6a0f","bugs":{"url":"https://github.com/jsdom/tr46/issues"},"homepage":"https://github.com/jsdom/tr46#readme","_id":"tr46@4.1.1","_nodeVersion":"19.6.0","_npmVersion":"9.4.0","dist":{"integrity":"sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==","shasum":"281a758dcc82aeb4fe38c7dfe4d11a395aac8469","tarball":"http://registry-npm.ywwl.com/tr46/download/tr46-4.1.1.tgz","fileCount":7,"unpackedSize":218128,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQhvxkazhon325eADBrUhCtEdIAJLn1j/rTpay0jvJkAiBa7GTKUWyR2HtIaSu7/KAEPCdrwWBbMPGT1BgB5GUVYQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCDGqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrc1hAAgYPNXhCkmiTuD548rnkvbLoA1aUVSrJ3+Bw5/B76Jkp6bYnM\r\nXQRg7Kbb5cdWbLUE4y8aJBdqaPG5AqT/Gr45I3OK3kkSnIvSFGJP6/P/KdVo\r\nRhatBhRvSK9qYUALIpfx+IFCjkaaN2VvpM6lBteSoNEXG6Z3butfkLrzbleD\r\nYYmxrlQmFnEussHqaF0oblCq1QZehgl2xe6F89zQv00vUYGvvXClJBcTzpl2\r\n+/cjrk1m7skBGrcSCPaMlxSrxM8TiYr/Otz3j2IwTssPodSH2/ALRbV/oC7B\r\nktdcdVu3+TPoOUG3tCBFeMRSxmQvnf3LCCB7TOv1Y3sQS76qdZs0YhwBTXfA\r\ntfr6igGx3xJnWRsfP9k/Q0atS16brMGqho8Fc2Qq4Isl+pc4NmodqU2ZkE3n\r\ntxxn6cQkasC/PyWeodLZkHnCVhdUlBdMVzUGlIeo38Ov92H6a+0jwNAS1E+D\r\nyYJVBUez42DEsHduk2l6LBqZ1+mtzs4pbc/R83CnSkRqaDhojBDwGfkTOtPb\r\ntvgX2+XS9R4LjbwDN7UfyhmgjqWSlXAucMTGxxrsBR6463mpyjDgY9m07eE7\r\n1O9fQGh2VdSjbAYCSKWBaSI9cI2b/CgjI/9e1Au72GWqPlASdE0sGMOlJgRb\r\nwgum5+nyw0TGE5UMRq9cwa7lft/srWNdzLU=\r\n=WHqa\r\n-----END PGP SIGNATURE-----\r\n","size":61947,"noattachment":false,"key":"/tr46/-/tr46-4.1.1.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.1.1_1678258602013_0.23444372439696548"},"_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":1678258602196,"_cnpm_publish_time":1678258602196,"dist-tags":{"latest":"7.0.0"}}