-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
82 lines (82 loc) · 3.38 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"_args": [
[
"strip-json-comments@2.0.1",
"/Users/eshanker/Code/fsevents"
]
],
"_from": "strip-json-comments@2.0.1",
"_id": "strip-json-comments@2.0.1",
"_inBundle": false,
"_integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
"_location": "/fsevents/strip-json-comments",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "strip-json-comments@2.0.1",
"name": "strip-json-comments",
"escapedName": "strip-json-comments",
"rawSpec": "2.0.1",
"saveSpec": null,
"fetchSpec": "2.0.1"
},
"_requiredBy": [
"/fsevents/rc"
],
"_resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
"_shrinkwrap": null,
"_spec": "2.0.1",
"_where": "/Users/eshanker/Code/fsevents",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/strip-json-comments/issues"
},
"dependencies": {},
"description": "Strip comments from JSON. Lets you use comments in your JSON files!",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/strip-json-comments#readme",
"keywords": [
"json",
"strip",
"remove",
"delete",
"trim",
"comments",
"multiline",
"parse",
"config",
"configuration",
"conf",
"settings",
"util",
"env",
"environment"
],
"license": "MIT",
"name": "strip-json-comments",
"optionalDependencies": {},
"readme": "# strip-json-comments [![Build Status](https://travis-ci.org/sindresorhus/strip-json-comments.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-json-comments)\n\n> Strip comments from JSON. Lets you use comments in your JSON files!\n\nThis is now possible:\n\n```js\n{\n\t// rainbows\n\t\"unicorn\": /* ❤ */ \"cake\"\n}\n```\n\nIt will replace single-line comments `//` and multi-line comments `/**/` with whitespace. This allows JSON error positions to remain as close as possible to the original source.\n\nAlso available as a [gulp](https://github.com/sindresorhus/gulp-strip-json-comments)/[grunt](https://github.com/sindresorhus/grunt-strip-json-comments)/[broccoli](https://github.com/sindresorhus/broccoli-strip-json-comments) plugin.\n\n\n## Install\n\n```\n$ npm install --save strip-json-comments\n```\n\n\n## Usage\n\n```js\nconst json = '{/*rainbows*/\"unicorn\":\"cake\"}';\n\nJSON.parse(stripJsonComments(json));\n//=> {unicorn: 'cake'}\n```\n\n\n## API\n\n### stripJsonComments(input, [options])\n\n#### input\n\nType: `string`\n\nAccepts a string with JSON and returns a string without comments.\n\n#### options\n\n##### whitespace\n\nType: `boolean` \nDefault: `true`\n\nReplace comments with whitespace instead of stripping them entirely.\n\n\n## Related\n\n- [strip-json-comments-cli](https://github.com/sindresorhus/strip-json-comments-cli) - CLI for this module\n- [strip-css-comments](https://github.com/sindresorhus/strip-css-comments) - Strip comments from CSS\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/strip-json-comments.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "2.0.1"
}