{"name":"tr46","version":"1.0.1","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/getLatestTests.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"},"unicodeVersion":"10.0.0","gitHead":"89825520a434d1d750103e05b6fa19b1a75b7ab4","bugs":{"url":"https://github.com/sebmaster/tr46.js/issues"},"homepage":"https://github.com/sebmaster/tr46.js#readme","_id":"tr46@1.0.1","_shasum":"a8b13fd6bfd2489519674ccde55ba3693b706d09","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"sebmaster","email":"sebmaster16@gmail.com"},"dist":{"shasum":"a8b13fd6bfd2489519674ccde55ba3693b706d09","tarball":"http://registry-npm.ywwl.com/tr46/download/tr46-1.0.1.tgz","integrity":"sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGiAK7YkrBBNtYN2842NTEUAUP0mFpfQw9rubF1YK9pTAiEA5scC+rEItjpZwbmPX1urrnHKdgJkB7GfaSWBcu1uft0="}],"size":76774,"noattachment":false,"key":"/tr46/-/tr46-1.0.1.tgz"},"maintainers":[{"name":"sebmaster","email":"sebmaster16@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tr46-1.0.1.tgz_1504404535111_0.9779330701567233"},"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":1504404536379,"_cnpm_publish_time":1504404536379,"dist-tags":{"latest":"7.0.0"}}