{"name":"tr46","version":"1.0.0","description":"An implementation of the Unicode TR46 spec","main":"index.js","files":["index.js","lib/mappingTable.json","lib/regexes.js"],"scripts":{"test":"mocha","lint":"eslint .","pretest":"node scripts/getLatestUnicodeTests.js","prepublish":"node scripts/generateMappingTable.js && node scripts/generateRegexes.js"},"repository":{"type":"git","url":"git+https://github.com/sebmaster/tr46.js.git"},"keywords":["unicode","tr46","url","whatwg"],"author":{"name":"Sebastian Mayr","email":"npm@smayr.name"},"license":"MIT","dependencies":{"punycode":"^2.1.0"},"devDependencies":{"eslint":"^3.13.0","mocha":"^3.2.0","regenerate":"^1.3.2","request":"^2.79.0","unicode-10.0.0":"^0.7.4"},"gitHead":"fe7e40f3464ff14b9da11c1d64e1470b60fed043","bugs":{"url":"https://github.com/sebmaster/tr46.js/issues"},"homepage":"https://github.com/sebmaster/tr46.js#readme","_id":"tr46@1.0.0","_shasum":"78aa45b58a8f60382fcc66598d1499e38ac1b953","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"sebmaster","email":"sebmaster16@gmail.com"},"dist":{"shasum":"78aa45b58a8f60382fcc66598d1499e38ac1b953","tarball":"http://registry-npm.ywwl.com/tr46/download/tr46-1.0.0.tgz","integrity":"sha512-XbVuqZaeYPi6jb3dRTRLU1P1Y2MYcQauF/ZOYRsq5g7X6v4/CRVRpGuiOMULaFsVe6AdFDnENCQ5x/Mzo103rQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRIZM6QItlwYKD7bbTlEscMS2r8bQ5XzovEFb+k5IaDAIhAOOuiD509dvtgSV4+FR14v1lHGBBh8SpXEpJcVhj1mXF"}],"size":76015,"noattachment":false,"key":"/tr46/-/tr46-1.0.0.tgz"},"maintainers":[{"name":"sebmaster","email":"sebmaster16@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tr46-1.0.0.tgz_1501195911430_0.7034000705461949"},"deprecated":"1.0.0 has some bugs with host name validation, mainly wrt BiDi rules. Please wait for v1.0.1.","directories":{},"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":1501195912630,"_cnpm_publish_time":1501195912630,"dist-tags":{"latest":"7.0.0"}}