Debian Codegraph @

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

raw
1 {
2 "_id": "json-stable-stringify",
3 "_rev": "36-7e8af0f42aa7b06f5573b521aaf1b58b",
4 "name": "json-stable-stringify",
5 "description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results",
6 "dist-tags": {
7 "latest": "1.0.1"
8 },
9 "versions": {
10 "0.0.0": {
11 "name": "json-stable-stringify",
12 "version": "0.0.0",
13 "description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results",
14 "main": "index.js",
15 "dependencies": {
16 "jsonify": "~0.0.0"
17 },
18 "devDependencies": {
19 "tape": "~1.0.4"
20 },
21 "scripts": {
22 "test": "tape test/*.js"
23 },
24 "testling": {
25 "files": "test/*.js",
26 "browsers": [
27 "ie/8..latest",
28 "ff/5",
29 "ff/latest",
30 "chrome/15",
31 "chrome/latest",
32 "safari/latest",
33 "opera/latest"
34 ]
35 },
36 "repository": {
37 "type": "git",
38 "url": "git://github.com/substack/json-stable-stringify.git"
39 },
40 "homepage": "https://github.com/substack/json-stable-stringify",
41 "keywords": [
42 "json",
43 "stringify",
44 "deterministic",
45 "hash",
46 "sort",
47 "stable"
48 ],
49 "author": {
50 "name": "James Halliday",
51 "email": "[email protected]",
52 "url": "http://substack.net"
53 },
54 "license": "MIT",
55 "bugs": {
56 "url": "https://github.com/substack/json-stable-stringify/issues"
57 },
58 "_id": "[email protected]",
59 "dist": {
60 "shasum": "a5880cbb2068c6edb68aeb8a1c17606eab6885a4",
61 "tarball": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.0.tgz"
62 },
63 "_from": ".",
64 "_npmVersion": "1.3.0",
65 "_npmUser": {
66 "name": "substack",
67 "email": "[email protected]"
68 },
69 "maintainers": [
70 {
71 "name": "substack",
72 "email": "[email protected]"
73 }
74 ],
75 "directories": {}
76 },
77 "0.0.1": {
78 "name": "json-stable-stringify",
79 "version": "0.0.1",
80 "description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results",
81 "main": "index.js",
82 "dependencies": {
83 "jsonify": "~0.0.0"
84 },
85 "devDependencies": {
86 "tape": "~1.0.4"
87 },
88 "scripts": {
89 "test": "tape test/*.js"
90 },
91 "testling": {
92 "files": "test/*.js",
93 "browsers": [
94 "ie/8..latest",
95 "ff/5",
96 "ff/latest",
97 "chrome/15",
98 "chrome/latest",
99 "safari/latest",
100 "opera/latest"
101 ]
102 },
103 "repository": {
104 "type": "git",
105 "url": "git://github.com/substack/json-stable-stringify.git"
106 },
107 "homepage": "https://github.com/substack/json-stable-stringify",
108 "keywords": [
109 "json",
110 "stringify",
111 "deterministic",
112 "hash",
113 "sort",
114 "stable"
115 ],
116 "author": {
117 "name": "James Halliday",
118 "email": "[email protected]",
119 "url": "http://substack.net"
120 },
121 "license": "MIT",
122 "bugs": {
123 "url": "https://github.com/substack/json-stable-stringify/issues"
124 },
125 "_id": "[email protected]",
126 "dist": {
127 "shasum": "611c23e814db375527df851193db59dd2af27f45",
128 "tarball": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz"
129 },
130 "_from": ".",
131 "_npmVersion": "1.3.0",
132 "_npmUser": {
133 "name": "substack",
134 "email": "[email protected]"
135 },
136 "maintainers": [
137 {
138 "name": "substack",
139 "email": "[email protected]"
140 }
141 ],
142 "directories": {}
143 },
144 "0.1.0": {
145 "name": "json-stable-stringify",
146 "version": "0.1.0",
147 "description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results",
148 "main": "index.js",
149 "dependencies": {
150 "jsonify": "~0.0.0"
151 },
152 "devDependencies": {
153 "tape": "~1.0.4"
154 },
155 "scripts": {
156 "test": "tape test/*.js"
157 },
158 "testling": {
159 "files": "test/*.js",
160 "browsers": [
161 "ie/8..latest",
162 "ff/5",
163 "ff/latest",
164 "chrome/15",
165 "chrome/latest",
166 "safari/latest",
167 "opera/latest"
168 ]
169 },
170 "repository": {
171 "type": "git",
172 "url": "git://github.com/substack/json-stable-stringify.git"
173 },
174 "homepage": "https://github.com/substack/json-stable-stringify",
175 "keywords": [
176 "json",
177 "stringify",
178 "deterministic",
179 "hash",
180 "sort",
181 "stable"
182 ],
183 "author": {
184 "name": "James Halliday",
185 "email": "[email protected]",
186 "url": "http://substack.net"
187 },
188 "license": "MIT",
189 "bugs": {
190 "url": "https://github.com/substack/json-stable-stringify/issues"
191 },
192 "_id": "[email protected]",
193 "dist": {
194 "shasum": "c54ac064fc16d73c4b8915d4587bcd0d6635648a",
195 "tarball": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.1.0.tgz"
196 },
197 "_from": ".",
198 "_npmVersion": "1.3.21",
199 "_npmUser": {
200 "name": "substack",
201 "email": "[email protected]"
202 },
203 "maintainers": [
204 {
205 "name": "substack",
206 "email": "[email protected]"
207 }
208 ],
209 "directories": {}
210 },
211 "0.1.1": {
212 "name": "json-stable-stringify",
213 "version": "0.1.1",
214 "description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results",
215 "main": "index.js",
216 "dependencies": {
217 "jsonify": "~0.0.0"
218 },
219 "devDependencies": {
220 "tape": "~1.0.4"
221 },
222 "scripts": {
223 "test": "tape test/*.js"
224 },
225 "testling": {
226 "files": "test/*.js",
227 "browsers": [
228 "ie/8..latest",
229 "ff/5",
230 "ff/latest",
231 "chrome/15",
232 "chrome/latest",
233 "safari/latest",
234 "opera/latest"
235 ]
236 },
237 "repository": {
238 "type": "git",
239 "url": "git://github.com/substack/json-stable-stringify.git"
240 },
241 "homepage": "https://github.com/substack/json-stable-stringify",
242 "keywords": [
243 "json",
244 "stringify",
245 "deterministic",
246 "hash",
247 "sort",
248 "stable"
249 ],
250 "author": {
251 "name": "James Halliday",
252 "email": "[email protected]",
253 "url": "http://substack.net"
254 },
255 "license": "MIT",
256 "bugs": {
257 "url": "https://github.com/substack/json-stable-stringify/issues"
258 },
259 "_id": "[email protected]",
260 "dist": {
261 "shasum": "d190f8784548e4cbae311db2c12804b797fb0c06",
262 "tarball": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.1.1.tgz"
263 },
264 "_from": ".",
265 "_npmVersion": "1.3.21",
266 "_npmUser": {
267 "name": "substack",
268 "email": "[email protected]"
269 },
270 "maintainers": [
271 {
272 "name": "substack",
273 "email": "[email protected]"
274 }
275 ],
276 "directories": {}
277 },
278 "0.1.2": {
279 "name": "json-stable-stringify",
280 "version": "0.1.2",
281 "description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results",
282 "main": "index.js",
283 "dependencies": {
284 "jsonify": "~0.0.0"
285 },
286 "devDependencies": {
287 "tape": "~1.0.4"
288 },
289 "scripts": {
290 "test": "tape test/*.js"
291 },
292 "testling": {
293 "files": "test/*.js",
294 "browsers": [
295 "ie/8..latest",
296 "ff/5",
297 "ff/latest",
298 "chrome/15",
299 "chrome/latest",
300 "safari/latest",
301 "opera/latest"
302 ]
303 },
304 "repository": {
305 "type": "git",
306 "url": "git://github.com/substack/json-stable-stringify.git"
307 },
308 "homepage": "https://github.com/substack/json-stable-stringify",
309 "keywords": [
310 "json",
311 "stringify",
312 "deterministic",
313 "hash",
314 "sort",
315 "stable"
316 ],
317 "author": {
318 "name": "James Halliday",
319 "email": "[email protected]",
320 "url": "http://substack.net"
321 },
322 "license": "MIT",
323 "bugs": {
324 "url": "https://github.com/substack/json-stable-stringify/issues"
325 },
326 "_id": "[email protected]",
327 "dist": {
328 "shasum": "cf427efa3e55a9a22ccc1e08fa866728623e4d92",
329 "tarball": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.1.2.tgz"
330 },
331 "_from": ".",
332 "_npmVersion": "1.4.6",
333 "_npmUser": {
334 "name": "substack",
335 "email": "[email protected]"
336 },
337 "maintainers": [
338 {
339 "name": "substack",
340 "email": "[email protected]"
341 }
342 ],
343 "directories": {}
344 },
345 "0.1.3": {
346 "name": "json-stable-stringify",
347 "version": "0.1.3",
348 "description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results",
349 "main": "index.js",
350 "dependencies": {
351 "jsonify": "~0.0.0"
352 },
353 "devDependencies": {
354 "tape": "~1.0.4"
355 },
356 "scripts": {
357 "test": "tape test/*.js"
358 },
359 "testling": {
360 "files": "test/*.js",
361 "browsers": [
362 "ie/8..latest",
363 "ff/5",
364 "ff/latest",
365 "chrome/15",
366 "chrome/latest",
367 "safari/latest",
368 "opera/latest"
369 ]
370 },
371 "repository": {
372 "type": "git",
373 "url": "git://github.com/substack/json-stable-stringify.git"
374 },
375 "homepage": "https://github.com/substack/json-stable-stringify",
376 "keywords": [
377 "json",
378 "stringify",
379 "deterministic",
380 "hash",
381 "sort",
382 "stable"
383 ],
384 "author": {
385 "name": "James Halliday",
386 "email": "[email protected]",
387 "url": "http://substack.net"
388 },
389 "license": "MIT",
390 "bugs": {
391 "url": "https://github.com/substack/json-stable-stringify/issues"
392 },
393 "_id": "[email protected]",
394 "dist": {
395 "shasum": "5860d0400e7a5911479248646c796b008eeb3eb9",
396 "tarball": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.1.3.tgz"
397 },
398 "_from": ".",
399 "_npmVersion": "1.4.3",
400 "_npmUser": {
401 "name": "substack",
402 "email": "[email protected]"
403 },
404 "maintainers": [
405 {
406 "name": "substack",
407 "email": "[email protected]"
408 }
409 ],
410 "directories": {}
411 },
412 "1.0.0": {
413 "name": "json-stable-stringify",
414 "version": "1.0.0",
415 "description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results",
416 "main": "index.js",
417 "dependencies": {
418 "jsonify": "~0.0.0"
419 },
420 "devDependencies": {
421 "tape": "~1.0.4"
422 },
423 "scripts": {
424 "test": "tape test/*.js"
425 },
426 "testling": {
427 "files": "test/*.js",
428 "browsers": [
429 "ie/8..latest",
430 "ff/5",
431 "ff/latest",
432 "chrome/15",
433 "chrome/latest",
434 "safari/latest",
435 "opera/latest"
436 ]
437 },
438 "repository": {
439 "type": "git",
440 "url": "git://github.com/substack/json-stable-stringify.git"
441 },
442 "homepage": "https://github.com/substack/json-stable-stringify",
443 "keywords": [
444 "json",
445 "stringify",
446 "deterministic",
447 "hash",
448 "sort",
449 "stable"
450 ],
451 "author": {
452 "name": "James Halliday",
453 "email": "[email protected]",
454 "url": "http://substack.net"
455 },
456 "license": "MIT",
457 "bugs": {
458 "url": "https://github.com/substack/json-stable-stringify/issues"
459 },
460 "_id": "[email protected]",
461 "dist": {
462 "shasum": "5e26859cf49968cfa499533413443578ee04d251",
463 "tarball": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.0.tgz"
464 },
465 "_from": ".",
466 "_npmVersion": "1.4.3",
467 "_npmUser": {
468 "name": "substack",
469 "email": "[email protected]"
470 },
471 "maintainers": [
472 {
473 "name": "substack",
474 "email": "[email protected]"
475 }
476 ],
477 "directories": {}
478 },
479 "1.0.1": {
480 "name": "json-stable-stringify",
481 "version": "1.0.1",
482 "description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results",
483 "main": "index.js",
484 "dependencies": {
485 "jsonify": "~0.0.0"
486 },
487 "devDependencies": {
488 "tape": "~1.0.4"
489 },
490 "scripts": {
491 "test": "tape test/*.js"
492 },
493 "testling": {
494 "files": "test/*.js",
495 "browsers": [
496 "ie/8..latest",
497 "ff/5",
498 "ff/latest",
499 "chrome/15",
500 "chrome/latest",
501 "safari/latest",
502 "opera/latest"
503 ]
504 },
505 "repository": {
506 "type": "git",
507 "url": "git://github.com/substack/json-stable-stringify.git"
508 },
509 "homepage": "https://github.com/substack/json-stable-stringify",
510 "keywords": [
511 "json",
512 "stringify",
513 "deterministic",
514 "hash",
515 "sort",
516 "stable"
517 ],
518 "author": {
519 "name": "James Halliday",
520 "email": "[email protected]",
521 "url": "http://substack.net"
522 },
523 "license": "MIT",
524 "gitHead": "4a3ac9cc006a91e64901f8ebe78d23bf9fc9fbd0",
525 "bugs": {
526 "url": "https://github.com/substack/json-stable-stringify/issues"
527 },
528 "_id": "[email protected]",
529 "_shasum": "9a759d39c5f2ff503fd5300646ed445f88c4f9af",
530 "_from": ".",
531 "_npmVersion": "3.4.1",
532 "_nodeVersion": "4.2.1",
533 "_npmUser": {
534 "name": "substack",
535 "email": "[email protected]"
536 },
537 "dist": {
538 "shasum": "9a759d39c5f2ff503fd5300646ed445f88c4f9af",
539 "tarball": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz"
540 },
541 "maintainers": [
542 {
543 "name": "substack",
544 "email": "[email protected]"
545 }
546 ],
547 "_npmOperationalInternal": {
548 "host": "packages-5-east.internal.npmjs.com",
549 "tmp": "tmp/json-stable-stringify-1.0.1.tgz_1454436356521_0.9410459187347442"
550 },
551 "directories": {}
552 }
553 },
554 "readme": "# json-stable-stringify\n\ndeterministic version of `JSON.stringify()` so you can get a consistent hash\nfrom stringified results\n\nYou can also pass in a custom comparison function.\n\n[![browser support](https://ci.testling.com/substack/json-stable-stringify.png)](https://ci.testling.com/substack/json-stable-stringify)\n\n[![build status](https://secure.travis-ci.org/substack/json-stable-stringify.png)](http://travis-ci.org/substack/json-stable-stringify)\n\n# example\n\n``` js\nvar stringify = require('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# methods\n\n``` js\nvar stringify = require('json-stable-stringify')\n```\n\n## var str = stringify(obj, opts)\n\nReturn a deterministic stringified string `str` from the object `obj`.\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('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('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### space\n\nIf you specify `opts.space`, it will indent the output for pretty-printing.\nValid values are strings (e.g. `{space: \\t}`) or a number of spaces\n(`{space: 3}`).\n\nFor example:\n\n```js\nvar obj = { b: 1, a: { foo: 'bar', and: [1, 2, 3] } };\nvar s = stringify(obj, { space: ' ' });\nconsole.log(s);\n```\n\nwhich outputs:\n\n```\n{\n \"a\": {\n \"and\": [\n 1,\n 2,\n 3\n ],\n \"foo\": \"bar\"\n },\n \"b\": 1\n}\n```\n\n### replacer\n\nThe replacer parameter is a function `opts.replacer(key, value)` that behaves\nthe same as the replacer\n[from the core JSON object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_native_JSON#The_replacer_parameter).\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install json-stable-stringify\n```\n\n# license\n\nMIT\n",
555 "maintainers": [
556 {
557 "name": "substack",
558 "email": "[email protected]"
559 }
560 ],
561 "time": {
562 "modified": "2018-03-15T10:15:49.342Z",
563 "created": "2013-07-17T22:41:41.615Z",
564 "0.0.0": "2013-07-17T22:41:43.693Z",
565 "0.0.1": "2013-07-18T00:47:49.279Z",
566 "0.1.0": "2013-12-22T04:03:58.660Z",
567 "0.1.1": "2013-12-22T04:09:35.488Z",
568 "0.1.2": "2014-04-03T04:41:04.116Z",
569 "0.1.3": "2014-05-27T10:48:43.732Z",
570 "1.0.0": "2014-05-27T12:49:07.848Z",
571 "1.0.1": "2016-02-02T18:05:58.629Z"
572 },
573 "author": {
574 "name": "James Halliday",
575 "email": "[email protected]",
576 "url": "http://substack.net"
577 },
578 "repository": {
579 "type": "git",
580 "url": "git://github.com/substack/json-stable-stringify.git"
581 },
582 "homepage": "https://github.com/substack/json-stable-stringify",
583 "keywords": [
584 "json",
585 "stringify",
586 "deterministic",
587 "hash",
588 "sort",
589 "stable"
590 ],
591 "bugs": {
592 "url": "https://github.com/substack/json-stable-stringify/issues"
593 },
594 "license": "MIT",
595 "readmeFilename": "readme.markdown",
596 "users": {
597 "brianjmiller": true,
598 "mycrobe": true,
599 "dongguangming": true,
600 "nttrung91": true,
601 "h0ward": true,
602 "famousgarkin": true,
603 "majgis": true,
604 "jits": true,
605 "steel1990": true,
606 "timdp": true,
607 "antixrist": true,
608 "sebastian1118": true,
609 "monolithed": true,
610 "chinawolf_wyp": true,
611 "goliatone": true,
612 "shyling": true,
613 "sbruchmann": true,
614 "maxidev": true,
615 "millercl": true,
616 "floriannagel": true
617 },
618 "_attachments": {}
619 }