{"name":"tr46","version":"4.1.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":"82234230c8be3b3a015a298b8d142e8a2d4ce984","bugs":{"url":"https://github.com/jsdom/tr46/issues"},"homepage":"https://github.com/jsdom/tr46#readme","_id":"tr46@4.1.0","_nodeVersion":"19.2.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-CbwCbLo1wAnGIJpVX97P+d1Bggf4E4zQ7GdcyxmTeHNES2LV+eOI3xe+apCHq0UVrlnI652guuycPjMEhRdNnA==","shasum":"c8f9dd5275ebb87c9a55d91324543dcb413473e7","tarball":"http://registry-npm.ywwl.com/tr46/download/tr46-4.1.0.tgz","fileCount":7,"unpackedSize":218159,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHodWBOktLm231qbDU7ozCUG6VulKOLvY/PMIJuubWYAiEAtoCvU/bPFvoNpZBQtZKXLz88JXTZGYeBcUN8IqOXTb8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0JHtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHXw//SxgqkXsDTFxlK1SNg6mSah1w05neuifrNJlnmf1YlS2sJPUN\r\nHg6JkSgTj88tdYYH8G+iwkxP+uXS8M3apx5CL1XqIHWsPQCWYkB2DOHpR0HF\r\n7Xo5BEsEvSK+19AHSZ+CfNeyRE2vcapQsBi4ln6cHIYGlnmds8bqQKKnGKN/\r\njtnAcuHh3REgV6ZuMw+G11su3TjE2MwxVCM6G7lVTP2FiZDy8S7UobSvzB0y\r\nxXZsCgJT7cNVAsRP9MR1WO67Qb4cKtmZZ2lqjVJUppJRKBDr3+H0j/bh7k+c\r\nWgykieXKSC9toXeMw64WZ1VZSoXURLCP2xIus1Zv96GBuqvDBuxMxA/vAKXb\r\nK2HIm8zlSL2g6CSnrEOYnQFat3S8l6lZe/zyIFfHDYPcgWh9KthKmy0Ud5Ch\r\neN0XW/kQsS6FbCiJx2+PgBRxdVVQ+Ta23lpejrZUQU1IQALhAPqGQLcJB/Qe\r\nw4jUcgmox8D2vYbWL9USR+p2GdOc1OpnSPHbG6w26s2apqNbTmOIVA5/GBKE\r\ng8bDFcp44DlgQYdwJlMJM5812Wz2q36hSPcp3VFkqwVMmlrKddtHzg+PwTYq\r\nf+bRQkWEdtsqs0+GlfjEujJE4GS7FZQlf+CwgRBhXJUEjpnZ/lZnnXJcWEZk\r\nKqPSTUVh7OckBQF3prau+Lov6z4QCN7qEpU=\r\n=E8Fh\r\n-----END PGP SIGNATURE-----\r\n","size":61979,"noattachment":false,"key":"/tr46/-/tr46-4.1.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.1.0_1674613229699_0.6581178546683062"},"_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":1674613229915,"_cnpm_publish_time":1674613229915,"dist-tags":{"latest":"7.0.0"}}