112 lines
3.8 KiB
JSON
112 lines
3.8 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "parse-json@^2.2.0",
|
|
"scope": null,
|
|
"escapedName": "parse-json",
|
|
"name": "parse-json",
|
|
"rawSpec": "^2.2.0",
|
|
"spec": ">=2.2.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/load-json-file"
|
|
]
|
|
],
|
|
"_from": "parse-json@>=2.2.0 <3.0.0",
|
|
"_id": "parse-json@2.2.0",
|
|
"_inCache": true,
|
|
"_location": "/parse-json",
|
|
"_nodeVersion": "0.12.7",
|
|
"_npmUser": {
|
|
"name": "sindresorhus",
|
|
"email": "sindresorhus@gmail.com"
|
|
},
|
|
"_npmVersion": "2.11.3",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "parse-json@^2.2.0",
|
|
"scope": null,
|
|
"escapedName": "parse-json",
|
|
"name": "parse-json",
|
|
"rawSpec": "^2.2.0",
|
|
"spec": ">=2.2.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/load-json-file",
|
|
"/test-exclude/load-json-file"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
|
|
"_shasum": "f480f40434ef80741f8469099f8dea18f55a4dc9",
|
|
"_shrinkwrap": null,
|
|
"_spec": "parse-json@^2.2.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/load-json-file",
|
|
"author": {
|
|
"name": "Sindre Sorhus",
|
|
"email": "sindresorhus@gmail.com",
|
|
"url": "sindresorhus.com"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/sindresorhus/parse-json/issues"
|
|
},
|
|
"dependencies": {
|
|
"error-ex": "^1.2.0"
|
|
},
|
|
"description": "Parse JSON with more helpful errors",
|
|
"devDependencies": {
|
|
"ava": "0.0.4",
|
|
"xo": "*"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "f480f40434ef80741f8469099f8dea18f55a4dc9",
|
|
"tarball": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"vendor"
|
|
],
|
|
"gitHead": "419b0cbb83e67af53f9fd3f7ff98605ea2020eb6",
|
|
"homepage": "https://github.com/sindresorhus/parse-json#readme",
|
|
"keywords": [
|
|
"parse",
|
|
"json",
|
|
"graceful",
|
|
"error",
|
|
"message",
|
|
"humanize",
|
|
"friendly",
|
|
"helpful",
|
|
"string",
|
|
"str"
|
|
],
|
|
"license": "MIT",
|
|
"maintainers": [
|
|
{
|
|
"name": "sindresorhus",
|
|
"email": "sindresorhus@gmail.com"
|
|
}
|
|
],
|
|
"name": "parse-json",
|
|
"optionalDependencies": {},
|
|
"readme": "# parse-json [![Build Status](https://travis-ci.org/sindresorhus/parse-json.svg?branch=master)](https://travis-ci.org/sindresorhus/parse-json)\n\n> Parse JSON with more helpful errors\n\n\n## Install\n\n```\n$ npm install --save parse-json\n```\n\n\n## Usage\n\n```js\nvar parseJson = require('parse-json');\nvar json = '{\\n\\t\"foo\": true,\\n}';\n\n\nJSON.parse(json);\n/*\nundefined:3\n}\n^\nSyntaxError: Unexpected token }\n*/\n\n\nparseJson(json);\n/*\nJSONError: Trailing comma in object at 3:1\n}\n^\n*/\n\n\nparseJson(json, 'foo.json');\n/*\nJSONError: Trailing comma in object at 3:1 in foo.json\n}\n^\n*/\n\n\n// you can also add the filename at a later point\ntry {\n\tparseJson(json);\n} catch (err) {\n\terr.fileName = 'foo.json';\n\tthrow err;\n}\n/*\nJSONError: Trailing comma in object at 3:1 in foo.json\n}\n^\n*/\n```\n\n## API\n\n### parseJson(input, [reviver], [filename])\n\n#### input\n\nType: `string`\n\n#### reviver\n\nType: `function`\n\nPrescribes how the value originally produced by parsing is transformed, before being returned. See [`JSON.parse` docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter\n) for more.\n\n#### filename\n\nType: `string`\n\nFilename displayed in the error message.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
|
|
"readmeFilename": "readme.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/sindresorhus/parse-json.git"
|
|
},
|
|
"scripts": {
|
|
"test": "xo && node test.js"
|
|
},
|
|
"version": "2.2.0",
|
|
"xo": {
|
|
"ignores": [
|
|
"vendor/**"
|
|
]
|
|
}
|
|
}
|