Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/fast-json-stable-stringify.json

raw
1 {
2 "_id": "fast-json-stable-stringify",
3 "_rev": "2-234af274b24aede23722cb0ebaf34bd1",
4 "name": "fast-json-stable-stringify",
5 "description": "deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify",
6 "dist-tags": {
7 "latest": "2.1.0"
8 },
9 "versions": {
10 "1.0.2": {
11 "name": "fast-json-stable-stringify",
12 "version": "1.0.2",
13 "description": "deterministic JSON.stringify() to get deterministic hashes from stringified results",
14 "main": "index.js",
15 "devDependencies": {
16 "tape": "~1.0.4"
17 },
18 "scripts": {
19 "test": "tape test/*.js"
20 },
21 "testling": {
22 "files": "test/*.js",
23 "browsers": [
24 "ie/8..latest",
25 "ff/5",
26 "ff/latest",
27 "chrome/15",
28 "chrome/latest",
29 "safari/latest",
30 "opera/latest"
31 ]
32 },
33 "repository": {
34 "type": "git",
35 "url": "git://github.com/epoberezkin/fast-json-stable-stringify.git"
36 },
37 "homepage": "https://github.com/epoberezkin/fast-json-stable-stringify",
38 "keywords": [
39 "json",
40 "stringify",
41 "deterministic",
42 "hash",
43 "stable"
44 ],
45 "author": {
46 "name": "James Halliday",
47 "email": "[email protected]",
48 "url": "http://substack.net"
49 },
50 "license": "MIT",
51 "gitHead": "9c1b94db1d3696918fa7f2f1845f8d0cc658b483",
52 "bugs": {
53 "url": "https://github.com/epoberezkin/fast-json-stable-stringify/issues"
54 },
55 "_id": "[email protected]",
56 "_npmVersion": "5.4.2",
57 "_nodeVersion": "8.7.0",
58 "_npmUser": {
59 "name": "esp",
60 "email": "[email protected]"
61 },
62 "maintainers": [
63 {
64 "name": "esp",
65 "email": "[email protected]"
66 }
67 ],
68 "dist": {
69 "integrity": "sha512-VyS3a5AWnBZ9G3p9aA/EeB6V9QP+v0qObIFguuV0EbZcUiDTwv57Rofoz3FptA3/xtlFQXYpE/6SCrGl03mNcg==",
70 "shasum": "a5d6c355312bf4570d3368ceae891c56bdc0373f",
71 "tarball": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-1.0.2.tgz"
72 },
73 "_npmOperationalInternal": {
74 "host": "s3://npm-registry-packages",
75 "tmp": "tmp/fast-json-stable-stringify-1.0.2.tgz_1508836898860_0.7807034021243453"
76 },
77 "directories": {}
78 },
79 "2.0.0": {
80 "name": "fast-json-stable-stringify",
81 "version": "2.0.0",
82 "description": "deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify",
83 "main": "index.js",
84 "devDependencies": {
85 "benchmark": "^2.1.4",
86 "coveralls": "^3.0.0",
87 "eslint": "^4.9.0",
88 "fast-stable-stringify": "latest",
89 "faster-stable-stringify": "latest",
90 "json-stable-stringify": "latest",
91 "nyc": "^11.2.1",
92 "pre-commit": "^1.2.2",
93 "tape": "~1.0.4"
94 },
95 "scripts": {
96 "eslint": "eslint index.js test",
97 "test-spec": "tape test/*.js",
98 "test": "npm run eslint && nyc npm run test-spec"
99 },
100 "repository": {
101 "type": "git",
102 "url": "git://github.com/epoberezkin/fast-json-stable-stringify.git"
103 },
104 "homepage": "https://github.com/epoberezkin/fast-json-stable-stringify",
105 "keywords": [
106 "json",
107 "stringify",
108 "deterministic",
109 "hash",
110 "stable"
111 ],
112 "author": {
113 "name": "James Halliday",
114 "email": "[email protected]",
115 "url": "http://substack.net"
116 },
117 "license": "MIT",
118 "nyc": {
119 "exclude": [
120 "test",
121 "node_modules"
122 ],
123 "reporter": [
124 "lcov",
125 "text-summary"
126 ]
127 },
128 "gitHead": "43c016ad43684fb3dff2f94e6bc25cd39fdf7f3b",
129 "bugs": {
130 "url": "https://github.com/epoberezkin/fast-json-stable-stringify/issues"
131 },
132 "_id": "[email protected]",
133 "_shasum": "d5142c0caee6b1189f87d3a76111064f86c8bbf2",
134 "_from": ".",
135 "_npmVersion": "4.2.0",
136 "_nodeVersion": "7.10.0",
137 "_npmUser": {
138 "name": "esp",
139 "email": "[email protected]"
140 },
141 "maintainers": [
142 {
143 "name": "esp",
144 "email": "[email protected]"
145 }
146 ],
147 "dist": {
148 "shasum": "d5142c0caee6b1189f87d3a76111064f86c8bbf2",
149 "tarball": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz"
150 },
151 "_npmOperationalInternal": {
152 "host": "s3://npm-registry-packages",
153 "tmp": "tmp/fast-json-stable-stringify-2.0.0.tgz_1508867040972_0.377122831530869"
154 },
155 "directories": {}
156 },
157 "2.1.0": {
158 "name": "fast-json-stable-stringify",
159 "version": "2.1.0",
160 "description": "deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify",
161 "main": "index.js",
162 "types": "index.d.ts",
163 "dependencies": {},
164 "devDependencies": {
165 "benchmark": "^2.1.4",
166 "coveralls": "^3.0.0",
167 "eslint": "^6.7.0",
168 "fast-stable-stringify": "latest",
169 "faster-stable-stringify": "latest",
170 "json-stable-stringify": "latest",
171 "nyc": "^14.1.0",
172 "pre-commit": "^1.2.2",
173 "tape": "^4.11.0"
174 },
175 "scripts": {
176 "eslint": "eslint index.js test",
177 "test-spec": "tape test/*.js",
178 "test": "npm run eslint && nyc npm run test-spec"
179 },
180 "repository": {
181 "type": "git",
182 "url": "git://github.com/epoberezkin/fast-json-stable-stringify.git"
183 },
184 "homepage": "https://github.com/epoberezkin/fast-json-stable-stringify",
185 "keywords": [
186 "json",
187 "stringify",
188 "deterministic",
189 "hash",
190 "stable"
191 ],
192 "author": {
193 "name": "James Halliday",
194 "email": "[email protected]",
195 "url": "http://substack.net"
196 },
197 "license": "MIT",
198 "nyc": {
199 "exclude": [
200 "test",
201 "node_modules"
202 ],
203 "reporter": [
204 "lcov",
205 "text-summary"
206 ]
207 },
208 "gitHead": "b3ab8bdfb91cb182c93475c2c3518d6224672bb4",
209 "bugs": {
210 "url": "https://github.com/epoberezkin/fast-json-stable-stringify/issues"
211 },
212 "_id": "[email protected]",
213 "_nodeVersion": "12.13.1",
214 "_npmVersion": "6.12.1",
215 "dist": {
216 "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
217 "shasum": "874bf69c6f404c2b5d99c481341399fd55892633",
218 "tarball": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
219 "fileCount": 18,
220 "unpackedSize": 16959,
221 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9Qs1CRA9TVsSAnZWagAAltoP/jWcQFQ/Edn5/PAwd8pb\nGVyKQiGL3MORCYwAEwg21khJmXlcMhk4yb+yP5w9f4XbBwltA7d6ToAUOG25\nhErqa7HFHkI3QnqHCD4m5WERuG0QAOoGJBdguNn9xhkZdo4ag4An8FCDAVPI\naY7vctnN5NBhFyA0vseJlWKc42fwzAFjqgGqZ5Ua2736vhqZAUgvTrvTlS5+\nF+L2SJa8n462W9EKS+SUJq1RohSKsHhVKhoiVZDntQDbttsINSKeiwHTf7kp\nNrfNZesdlhs0OnFyKysLud3HYd5SpvOMq4/20G6Cn+Z31pmvakrfkpvlb5EX\n0dUpOTeKmWq+GrF3r2xDOx1szitQQa+D/DWOZFFsoXUAwv4d2fnUYMJVOjHS\ntWmGzVMoCEW62uEmIPCfCf9fuhHN52Tly0v28MnbmdWoB4R0mAFqDhKsMSSJ\nJ7LUPWjZ4n7d8oiZeJZebT6MfSJr1i1ROm9tLbQCt4j18pGKDVJw1KnlcoTc\nz/Q4hZgoIkskc3hV9ferIl/jAdeQcfM3DgekKqr96Y6WGcMlobzyhzXbd9Aq\nRgfS+345S8K/fnDBM5c4ZDgRnDHklm34IZq1ZtEadeiWsQ+5qpPJ+1qhmzPb\n7aZ8PUEiCLj9fxV349tYOXMjMG/Lw7vy+IM02BZvz8lgxrc3XPXR7xtg4pZv\nThLg\r\n=nreR\r\n-----END PGP SIGNATURE-----\r\n"
222 },
223 "maintainers": [
224 {
225 "name": "esp",
226 "email": "[email protected]"
227 }
228 ],
229 "_npmUser": {
230 "name": "esp",
231 "email": "[email protected]"
232 },
233 "directories": {},
234 "_npmOperationalInternal": {
235 "host": "s3://npm-registry-packages",
236 "tmp": "tmp/fast-json-stable-stringify_2.1.0_1576340277444_0.8261047926724743"
237 },
238 "_hasShrinkwrap": false
239 }
240 },
241 "readme": "# fast-json-stable-stringify\n\nDeterministic `JSON.stringify()` - a faster version of [@substack](https://github.com/substack)'s json-stable-strigify without [jsonify](https://github.com/substack/jsonify).\n\nYou can also pass in a custom comparison function.\n\n[![Build Status](https://travis-ci.org/epoberezkin/fast-json-stable-stringify.svg?branch=master)](https://travis-ci.org/epoberezkin/fast-json-stable-stringify)\n[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/fast-json-stable-stringify/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/fast-json-stable-stringify?branch=master)\n\n# example\n\n``` js\nvar stringify = require('fast-json-stable-stringify');\nvar obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };\nconsole.log(stringify(obj));\n```\n\noutput:\n\n```\n{\"a\":3,\"b\":[{\"x\":4,\"y\":5,\"z\":6},7],\"c\":8}\n```\n\n\n# methods\n\n``` js\nvar stringify = require('fast-json-stable-stringify')\n```\n\n## var str = stringify(obj, opts)\n\nReturn a deterministic stringified string `str` from the object `obj`.\n\n\n## options\n\n### cmp\n\nIf `opts` is given, you can supply an `opts.cmp` to have a custom comparison\nfunction for object keys. Your function `opts.cmp` is called with these\nparameters:\n\n``` js\nopts.cmp({ key: akey, value: avalue }, { key: bkey, value: bvalue })\n```\n\nFor example, to sort on the object key names in reverse order you could write:\n\n``` js\nvar stringify = require('fast-json-stable-stringify');\n\nvar obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };\nvar s = stringify(obj, function (a, b) {\n return a.key < b.key ? 1 : -1;\n});\nconsole.log(s);\n```\n\nwhich results in the output string:\n\n```\n{\"c\":8,\"b\":[{\"z\":6,\"y\":5,\"x\":4},7],\"a\":3}\n```\n\nOr if you wanted to sort on the object values in reverse order, you could write:\n\n```\nvar stringify = require('fast-json-stable-stringify');\n\nvar obj = { d: 6, c: 5, b: [{z:3,y:2,x:1},9], a: 10 };\nvar s = stringify(obj, function (a, b) {\n return a.value < b.value ? 1 : -1;\n});\nconsole.log(s);\n```\n\nwhich outputs:\n\n```\n{\"d\":6,\"c\":5,\"b\":[{\"z\":3,\"y\":2,\"x\":1},9],\"a\":10}\n```\n\n### cycles\n\nPass `true` in `opts.cycles` to stringify circular property as `__cycle__` - the result will not be a valid JSON string in this case.\n\nTypeError will be thrown in case of circular object without this option.\n\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install fast-json-stable-stringify\n```\n\n\n# benchmark\n\nTo run benchmark (requires Node.js 6+):\n```\nnode benchmark\n```\n\nResults:\n```\nfast-json-stable-stringify x 17,189 ops/sec ±1.43% (83 runs sampled)\njson-stable-stringify x 13,634 ops/sec ±1.39% (85 runs sampled)\nfast-stable-stringify x 20,212 ops/sec ±1.20% (84 runs sampled)\nfaster-stable-stringify x 15,549 ops/sec ±1.12% (84 runs sampled)\nThe fastest is fast-stable-stringify\n```\n\n\n## Enterprise support\n\nfast-json-stable-stringify package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-fast-json-stable-stringify?utm_source=npm-fast-json-stable-stringify&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers.\n\n\n## Security contact\n\nTo report a security vulnerability, please use the\n[Tidelift security contact](https://tidelift.com/security).\nTidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues.\n\n\n# license\n\n[MIT](https://github.com/epoberezkin/fast-json-stable-stringify/blob/master/LICENSE)\n",
242 "maintainers": [
243 {
244 "name": "esp",
245 "email": "[email protected]"
246 }
247 ],
248 "time": {
249 "modified": "2019-12-14T16:17:59.898Z",
250 "created": "2017-10-24T09:21:39.783Z",
251 "1.0.2": "2017-10-24T09:21:39.783Z",
252 "2.0.0": "2017-10-24T17:44:01.875Z",
253 "2.1.0": "2019-12-14T16:17:57.583Z"
254 },
255 "homepage": "https://github.com/epoberezkin/fast-json-stable-stringify",
256 "keywords": [
257 "json",
258 "stringify",
259 "deterministic",
260 "hash",
261 "stable"
262 ],
263 "repository": {
264 "type": "git",
265 "url": "git://github.com/epoberezkin/fast-json-stable-stringify.git"
266 },
267 "author": {
268 "name": "James Halliday",
269 "email": "[email protected]",
270 "url": "http://substack.net"
271 },
272 "bugs": {
273 "url": "https://github.com/epoberezkin/fast-json-stable-stringify/issues"
274 },
275 "license": "MIT",
276 "readmeFilename": "README.md"
277 }