@zkochan/pnpm
Version:
Fast, disk space efficient package manager
108 lines (107 loc) • 4.58 kB
JSON
{
"_args": [
[
{
"raw": "decode-uri-component@^0.2.0",
"scope": null,
"escapedName": "decode-uri-component",
"name": "decode-uri-component",
"rawSpec": "^0.2.0",
"spec": ">=0.2.0 <0.3.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/query-string"
]
],
"_from": "decode-uri-component@>=0.2.0 <0.3.0",
"_id": "decode-uri-component@0.2.0",
"_inCache": true,
"_location": "/decode-uri-component",
"_nodeVersion": "6.9.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/decode-uri-component-0.2.0.tgz_1498673766342_0.38562501198612154"
},
"_npmUser": {
"name": "samverschueren",
"email": "sam.verschueren@gmail.com"
},
"_npmVersion": "3.10.8",
"_phantomChildren": {},
"_requested": {
"raw": "decode-uri-component@^0.2.0",
"scope": null,
"escapedName": "decode-uri-component",
"name": "decode-uri-component",
"rawSpec": "^0.2.0",
"spec": ">=0.2.0 <0.3.0",
"type": "range"
},
"_requiredBy": [
"/query-string",
"/source-map-resolve"
],
"_resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
"_shasum": "eb3913333458775cb84cd1a1fae062106bb87545",
"_shrinkwrap": null,
"_spec": "decode-uri-component@^0.2.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/query-string",
"author": {
"name": "Sam Verschueren",
"email": "sam.verschueren@gmail.com",
"url": "github.com/SamVerschueren"
},
"bugs": {
"url": "https://github.com/SamVerschueren/decode-uri-component/issues"
},
"dependencies": {},
"description": "A better decodeURIComponent",
"devDependencies": {
"ava": "^0.17.0",
"coveralls": "^2.13.1",
"nyc": "^10.3.2",
"xo": "^0.16.0"
},
"directories": {},
"dist": {
"shasum": "eb3913333458775cb84cd1a1fae062106bb87545",
"tarball": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz"
},
"engines": {
"node": ">=0.10"
},
"files": [
"index.js"
],
"gitHead": "52782a347527a6a05fed02434ffcf8f2ba1b19a3",
"homepage": "https://github.com/SamVerschueren/decode-uri-component#readme",
"keywords": [
"decode",
"uri",
"component",
"decodeuricomponent",
"components",
"decoder",
"url"
],
"license": "MIT",
"maintainers": [
{
"name": "samverschueren",
"email": "sam.verschueren@gmail.com"
}
],
"name": "decode-uri-component",
"optionalDependencies": {},
"readme": "# decode-uri-component\n\n[](https://travis-ci.org/SamVerschueren/decode-uri-component) [](https://coveralls.io/github/SamVerschueren/decode-uri-component?branch=master)\n\n> A better [decodeURIComponent](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent)\n\n\n## Why?\n\n- Decodes `+` to a space.\n- Converts the [BOM](https://en.wikipedia.org/wiki/Byte_order_mark) to a [replacement character](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character) `�`.\n- Does not throw with invalid encoded input.\n- Decodes as much of the string as possible.\n\n\n## Install\n\n```\n$ npm install --save decode-uri-component\n```\n\n\n## Usage\n\n```js\nconst decodeUriComponent = require('decode-uri-component');\n\ndecodeUriComponent('%25');\n//=> '%'\n\ndecodeUriComponent('%');\n//=> '%'\n\ndecodeUriComponent('st%C3%A5le');\n//=> 'ståle'\n\ndecodeUriComponent('%st%C3%A5le%');\n//=> '%ståle%'\n\ndecodeUriComponent('%%7Bst%C3%A5le%7D%');\n//=> '%{ståle}%'\n\ndecodeUriComponent('%7B%ab%%7C%de%%7D');\n//=> '{%ab%|%de%}'\n\ndecodeUriComponent('%FE%FF');\n//=> '\\uFFFD\\uFFFD'\n\ndecodeUriComponent('%C2');\n//=> '\\uFFFD'\n\ndecodeUriComponent('%C2%B5');\n//=> 'µ'\n```\n\n\n## API\n\n### decodeUriComponent(encodedURI)\n\n#### encodedURI\n\nType: `string`\n\nAn encoded component of a Uniform Resource Identifier.\n\n\n## License\n\nMIT © [Sam Verschueren](https://github.com/SamVerschueren)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/SamVerschueren/decode-uri-component.git"
},
"scripts": {
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"test": "xo && nyc ava"
},
"version": "0.2.0"
}