109 lines
4.6 KiB
JSON
109 lines
4.6 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "tr46@^1.0.0",
|
|
"scope": null,
|
|
"escapedName": "tr46",
|
|
"name": "tr46",
|
|
"rawSpec": "^1.0.0",
|
|
"spec": ">=1.0.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/whatwg-url"
|
|
]
|
|
],
|
|
"_from": "tr46@>=1.0.0 <2.0.0",
|
|
"_id": "tr46@1.0.1",
|
|
"_inCache": true,
|
|
"_location": "/tr46",
|
|
"_nodeVersion": "7.7.2",
|
|
"_npmOperationalInternal": {
|
|
"host": "s3://npm-registry-packages",
|
|
"tmp": "tmp/tr46-1.0.1.tgz_1504404535111_0.9779330701567233"
|
|
},
|
|
"_npmUser": {
|
|
"name": "sebmaster",
|
|
"email": "sebmaster16@gmail.com"
|
|
},
|
|
"_npmVersion": "4.1.2",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "tr46@^1.0.0",
|
|
"scope": null,
|
|
"escapedName": "tr46",
|
|
"name": "tr46",
|
|
"rawSpec": "^1.0.0",
|
|
"spec": ">=1.0.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/whatwg-url"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",
|
|
"_shasum": "a8b13fd6bfd2489519674ccde55ba3693b706d09",
|
|
"_shrinkwrap": null,
|
|
"_spec": "tr46@^1.0.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/whatwg-url",
|
|
"author": {
|
|
"name": "Sebastian Mayr",
|
|
"email": "npm@smayr.name"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/Sebmaster/tr46.js/issues"
|
|
},
|
|
"dependencies": {
|
|
"punycode": "^2.1.0"
|
|
},
|
|
"description": "An implementation of the Unicode TR46 spec",
|
|
"devDependencies": {
|
|
"eslint": "^3.13.0",
|
|
"mocha": "^3.2.0",
|
|
"regenerate": "^1.3.2",
|
|
"request": "^2.79.0",
|
|
"unicode-10.0.0": "^0.7.4"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "a8b13fd6bfd2489519674ccde55ba3693b706d09",
|
|
"tarball": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib/mappingTable.json",
|
|
"lib/regexes.js"
|
|
],
|
|
"gitHead": "89825520a434d1d750103e05b6fa19b1a75b7ab4",
|
|
"homepage": "https://github.com/Sebmaster/tr46.js#readme",
|
|
"keywords": [
|
|
"unicode",
|
|
"tr46",
|
|
"url",
|
|
"whatwg"
|
|
],
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "sebmaster",
|
|
"email": "sebmaster16@gmail.com"
|
|
}
|
|
],
|
|
"name": "tr46",
|
|
"optionalDependencies": {},
|
|
"readme": "# tr46.js\n\n> An implementation of the [Unicode TR46 specification](http://unicode.org/reports/tr46/).\n\n\n## Installation\n\n[Node.js](http://nodejs.org) `>= 6` is required. To install, type this at the command line:\n```shell\nnpm install tr46\n```\n\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* [`checkBidi`](#checkBidi)\n* [`checkHyphens`](#checkHyphens)\n* [`checkJoiners`](#checkJoiners)\n* [`processingOption`](#processingOption)\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* [`checkBidi`](#checkBidi)\n* [`checkHyphens`](#checkHyphens)\n* [`checkJoiners`](#checkJoiners)\n* [`useSTD3ASCIIRules`](#useSTD3ASCIIRules)\n\n\n## Options\n\n### `checkBidi`\nType: `Boolean` \nDefault value: `false` \nWhen set to `true`, any bi-directional text within the input will be checked for validation.\n\n### `checkHyphens`\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`\nType: `Boolean` \nDefault value: `false` \nWhen set to `true`, any word joiner characters within the input will be checked for validation.\n\n### `processingOption`\nType: `String` \nDefault value: `\"nontransitional\"` \nWhen set to `\"transitional\"`, symbols within the input will be validated according to the older IDNA2003 protocol. When set to `\"nontransitional\"`, the current IDNA2008 protocol will be used.\n\n### `useSTD3ASCIIRules`\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`\nType: `Boolean` \nDefault value: `false` \nWhen set to `true`, the length of each DNS label within the input will be checked for validation.\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/Sebmaster/tr46.js.git"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint .",
|
|
"prepublish": "node scripts/generateMappingTable.js && node scripts/generateRegexes.js",
|
|
"pretest": "node scripts/getLatestTests.js",
|
|
"test": "mocha"
|
|
},
|
|
"unicodeVersion": "10.0.0",
|
|
"version": "1.0.1"
|
|
}
|