{"name":"@oozcitak/uts46","version":"0.0.7","keywords":["uts46","tr46","unicode","idna"],"author":{"name":"Ozgur Ozcitak","email":"oozcitak@gmail.com"},"license":"MIT","_id":"@oozcitak/uts46@0.0.7","maintainers":[{"name":"oozcitak","email":"oozcitak@gmail.com"}],"contributors":[],"homepage":"http://github.com/oozcitak/uts46","bugs":{"url":"http://github.com/oozcitak/uts46/issues"},"dist":{"shasum":"9ad45808040fd9201eca3db718964053dac767a9","tarball":"http://registry-npm.ywwl.com/@oozcitak/uts46/download/@oozcitak/uts46-0.0.7.tgz","fileCount":18,"integrity":"sha512-YTGMv4+ydOHaX/uYICsKspKMTr7suEt0NPpMLc5tGBvA+8wxQ00Wtr7TU+pdrQUt3zeAnbYBH2wvPzBxIZPinA==","signatures":[{"sig":"MEUCICr4CSCfURJZaUDLYzLiPUCxS8OXid9l1wMMI25qDRkAAiEAlTHK9Z+SNly3zi64Bk9at+JBHCV21RaWpQ/d4UOiV1Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1332155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwYbbCRA9TVsSAnZWagAAb+IP/0RHlQK1HMisKnESE+Pv\nsh2W0yn+gNeQQMqMwNrY8JOsA7RchhLf0nCFZ8yOjm6VKFCGn8L6HYKV4Dy5\n9kebHUbRM/jq3nAxeQc88Wr4ftEyPn5IvAVO7Xd9Gc26ReIWdI/8jssp7FVK\nZwH3mxlEMzHpRbZLnbgsHpmVpyqPsxgrJ3jIhT29VH+okFYErYi/oUhUP4Lw\nw6uwaeFXfrayW5V3GpJbV72ChIaJBC3n6XBF47Id1uDWIxgMhKd6mBnA7vbb\nfXhUAaykvUz7xlPVerhiRH2pE3cfDz7Ch01AiebtarAYeu8noWHpoDg8sq7j\nxWJIgpLwzjs6lmuHaP69Vqtq8Fht92tQOSG2Tr8cySgqbk5eEw+s5qKCePQl\nsYvLIs25uivl3vG4vVAfL4GUfyC6LA4fx0aM37hqiV0i147XuLlhsewehq3W\nqwQCjugm/B+EtKPOzFQ+6zpXlBpCq0vLQBQCLl8EzzaP6T0wR0PjupJFr4/X\nxQOZK4vjgzutM/4SeJ+QOhbHZxgkTr5l1pJ9HHG68MYXqwQCC5ibcLd50FcL\nA58QdNPd/0RyQZ98rim0Ql/M/2iI9hMNGIYVHJlYsA2TgR4cj33+P/McnO8E\n3g8h/dZG5UQy+SOSAoAdT9ITHS70cmNxrqLe6dVbJQ/brsgiPtSfSLXCXEmq\nVXMf\r\n=i0KL\r\n-----END PGP SIGNATURE-----\r\n","size":89135,"noattachment":false,"key":"/@oozcitak/uts46/-/@oozcitak/uts46-0.0.7.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":"45f7c95f45c0403d6c9f2600dfe47c06f5e9e5fe","scripts":{"test":"npm run compile && jest --coverage","compile":"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"},"_hasShrinkwrap":false,"devDependencies":{"jest":"*","ts-jest":"*","coveralls":"*","typescript":"*","@types/jest":"*","@types/node":"*"},"_npmOperationalInternal":{"tmp":"tmp/uts46_0.0.7_1572964059196_0.878929004457208","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":1572964059362,"_cnpm_publish_time":1572964059362,"dist-tags":{"latest":"1.0.0"}}