{"name":"@oozcitak/uts46","version":"0.0.8","keywords":["uts46","tr46","unicode","idna"],"author":{"name":"Ozgur Ozcitak","email":"oozcitak@gmail.com"},"license":"MIT","_id":"@oozcitak/uts46@0.0.8","maintainers":[{"name":"oozcitak","email":"oozcitak@gmail.com"}],"contributors":[],"homepage":"http://github.com/oozcitak/uts46","bugs":{"url":"http://github.com/oozcitak/uts46/issues"},"dist":{"shasum":"5b7167adfbcf097ba32419a4a1db5e94485e10a8","tarball":"http://registry-npm.ywwl.com/@oozcitak/uts46/download/@oozcitak/uts46-0.0.8.tgz","fileCount":15,"integrity":"sha512-/m/ytADxqWfGiNvenR5wkX7NGBRKQlypufv0w2NRAoWIGDuRLeweClJPRxV41Mln3HNtlF08OKoFFRUG8ztvGQ==","signatures":[{"sig":"MEUCIHZKEhsvrUTCo4zCeJexB+Ws6HZ0nMKOwRjfEZGKOHvlAiEA4KxE4ObWWKER8DMnZ+G7ucUTdUxYXMEAO1RnO6Yb6qE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1320645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxUosCRA9TVsSAnZWagAAT6oP+QDDeGkRb3rs3uivr1mM\nEjswYziFD6xqRarU5HejnAWLH/l+eYcJGF0bEs25iqNqb7FcPFennZxt8VjO\ncjaX3g04SwFRDpGJFIAHykJRdviw48CP4vfjk/UawzsoS6C59qoo7Fb74bgU\nUrV8Sd0lfYTXTjnAToruuDGeVUm0pYEtzOrf2DWaELgmLg4jMzoL4lTxQMfZ\nkOVJJf/hiT8ji7LSDCnS4BGNqG22TZjrCizA97nnQbYRDoyCqeHDgNunsQM2\nLg2MTu9XSINQoVSV5sYfTZ31mQbFpwJTruSSiFiaHvHyGGoxPSp4Uk2UmC/K\nQzNVzOUCc4H+vhq+DYSQbpLfO44dQcN12XSxO/rAs22VoU4Yy8lm6+MqpOjx\nRepWdf3r+5GVkDGISdpjMP3jEMuPAOuI0tPHGoYGT05JL/Tx/7nLHRTRXb2U\nf9SKDNi3Uwk16ZF28nRDqqYSwRj69HU6Us1kK31xBKaoXB56ckY8dXQWDwbv\nXyXTu6USuIY0EqJGxiDMnIsogrpTVH3VSEdJXjV3o82boVl9AvhcF4SG7ue6\n2ik13G7MEE1qyBi30m4SP0boJ0VVYa1yGew3RBfArRrVVw12N5o0Iy6BgOzl\nzVX/8VccFbZfpRzwmu6+JBQJ4iLR2mNa0p5IKSspREIrusoPhnYwQoUwGYZ2\nAcPo\r\n=9NLG\r\n-----END PGP SIGNATURE-----\r\n","size":86905,"noattachment":false,"key":"/@oozcitak/uts46/-/@oozcitak/uts46-0.0.8.tgz"},"jest":{"testRegex":"/test/.*\\.test\\.tsx?$","transform":{"^.+\\.tsx?$":"ts-jest"},"testEnvironment":"node","collectCoverageFrom":["src/**/*.{ts,tsx}"]},"main":"./lib/index","types":"lib/index.d.ts","engines":{"node":">=6.0"},"gitHead":"50d71366a2070b31488b7855cfd543c8651812c5","scripts":{"test":"npm run compile && jest --coverage","compile":"rm -rf ./lib && tsc --version && tsc","publish-public":"npm run test && npm publish --access public"},"_npmUser":{"name":"oozcitak","email":"oozcitak@gmail.com"},"repository":{"url":"git+https://github.com/oozcitak/uts46.git","type":"git"},"_npmVersion":"6.8.0","description":"An implementation of Unicode IDNA Compatibility Processing (UTS 46)","directories":{},"_nodeVersion":"10.14.2","dependencies":{"punycode":"2.1.1","@oozcitak/util":"1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"*","ts-jest":"*","coveralls":"*","typescript":"*","@types/jest":"*","@types/node":"*"},"_npmOperationalInternal":{"tmp":"tmp/uts46_0.0.8_1573210667740_0.30041565046850494","host":"s3://npm-registry-packages"},"readme":"# UTS46\nA Javascript implementation of [Unicode IDNA Compatibility Processing (UTS 46)](http://www.unicode.org/reports/tr46/).\n\n[![License](http://img.shields.io/npm/l/@oozcitak/uts46.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![NPM Version](http://img.shields.io/npm/v/@oozcitak/uts46.svg?style=flat-square)](https://www.npmjs.com/package/@oozcitak/uts46)\n\n[![Node.js CI](https://github.com/oozcitak/uts46/workflows/build/badge.svg)](https://github.com/oozcitak/uts46/actions)\n[![Code Coverage](https://codecov.io/gh/oozcitak/uts46/branch/master/graph/badge.svg)](https://codecov.io/gh/oozcitak/uts46)\n\n# Version\nCurrent version implements the standard as of version [24](http://www.unicode.org/reports/tr46/tr46-24.html).\n\n# Documentation\nThe library exports the following functions:\n\n## toASCII(domainName, options)\nConverts a domain name string to ASCII. Returns the converted string or `null` if an\nerror occurs during conversion.\n\n- `domainName` - a domain name string\n- `options` - an object with the following boolean properties:\n  - `useSTD3ASCIIRules` - determines whether to abide by the rules in\n    [STD3](http://www.rfc-editor.org/std/std3.txt). These rules exclude ASCII\n    characters outside the set consisting of A-Z, a-z, 0-9, and U+002D ( - )\n    HYPHEN-MINUS. Defaults to `true`.\n  - `checkHyphens` - determines whether to allow a domain name label to start\n    or end with a U+002D ( - ) HYPHEN-MINUS character and also to contain\n    a hyphen-minus in both its third and fourth characters. Defaults to `true`.\n  - `checkBidi` - determines whether to abide by the rules of\n    [RFC 5893](http://tools.ietf.org/html/rfc5893) for a bidirectional domain\n    name. Defaults to `true`.\n  - `checkJoiners` - determines whether to abide by the rules of\n    [RFC 5892](http://tools.ietf.org/html/rfc5892) ContextJ. Defaults to `true`.\n  - `transitionalProcessing` - determines whether to replace deviation characters\n    in the domain name string. Defaults to `true`.\n  - `verifyDnsLength` - determines whether to apply DNS length restrictions to\n    the domain name string and its labels. Defaults to `true`.\n\n## toUnicode(domainName, options, output)\nConverts a domain name string to Unicode.\n\n- `domainName` - a domain name string\n- `options` - an object with the following boolean properties:\n  - `useSTD3ASCIIRules` - determines whether to abide by the rules in\n    [STD3](http://www.rfc-editor.org/std/std3.txt). These rules exclude ASCII\n    characters outside the set consisting of A-Z, a-z, 0-9, and U+002D ( - )\n    HYPHEN-MINUS. Defaults to `true`.\n  - `checkHyphens` - determines whether to allow a domain name label to start\n    or end with a U+002D ( - ) HYPHEN-MINUS character and also to contain\n    a hyphen-minus in both its third and fourth characters. Defaults to `true`.\n  - `checkBidi` - determines whether to abide by the rules of\n    [RFC 5893](http://tools.ietf.org/html/rfc5893) for a bidirectional domain\n    name. Defaults to `true`.\n  - `checkJoiners` - determines whether to abide by the rules of\n    [RFC 5892](http://tools.ietf.org/html/rfc5892) ContextJ. Defaults to `true`.\n  - `transitionalProcessing` - Determines whether to replace deviation characters\n    in the domain name string. Defaults to `true`.\n- `output` - an object containing a single boolean `error` property that is set on return\n  indicating if any errors were encountered during conversion.\n\n# Examples\n```js\n// toUnicode without transitional processing\ntoUnicode(\"fass.de\", { transitionalProcessing: false }); // \"fass.de\"\ntoUnicode(\"faß.de\", { transitionalProcessing: false }); //\"faß.de\"\ntoUnicode(\"Faß.de\", { transitionalProcessing: false }); // \"faß.de\"\ntoUnicode(\"xn--fa-hia.de\", { transitionalProcessing: false }); // \"faß.de\"\n\n// toASCII with transitional processing\ntoASCII(\"fass.de\"); // \"fass.de\"\ntoASCII(\"faß.de\"); // \"fass.de\"\ntoASCII(\"Faß.de\"); // \"fass.de\"\ntoASCII(\"xn--fa-hia.de\"); // \"xn--fa-hia.de\"\n\n// toASCII without transitional processing'\ntoASCII(\"fass.de\", { transitionalProcessing: false }); // \"fass.de\"\ntoASCII(\"faß.de\", { transitionalProcessing: false }); // \"xn--fa-hia.de\"\ntoASCII(\"Faß.de\", { transitionalProcessing: false }); // \"xn--fa-hia.de\"\ntoASCII(\"xn--fa-hia.de\", { transitionalProcessing: false }); // \"xn--fa-hia.de\"\n```\n","publish_time":1573210667876,"_cnpm_publish_time":1573210667876,"dist-tags":{"latest":"1.0.0"}}