Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/package-hash.json

raw
1 {
2 "_id": "package-hash",
3 "_rev": "8-3302f74dacfb874116c4918d8071af9b",
4 "name": "package-hash",
5 "description": "Generates a hash for an installed npm package, useful for salting caches",
6 "dist-tags": {
7 "latest": "4.0.0"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "package-hash",
12 "version": "1.0.0",
13 "description": "Generates a hash for an installed npm package, useful for salting caches",
14 "main": "index.js",
15 "files": [
16 "index.js",
17 "index.js.map"
18 ],
19 "scripts": {
20 "clean": "rimraf index.js index.js.map",
21 "prebuild": "npm run clean",
22 "build": "babel src --out-dir ./ --source-maps",
23 "prepublish": "npm run build",
24 "lint": "as-i-preach",
25 "unpack-fixtures": "node scripts/unpack-fixtures.js",
26 "pregenerate-fixture-index": "npm run unpack-fixtures",
27 "generate-fixture-index": "node scripts/generate-fixture-index.js",
28 "pretest": "npm run unpack-fixtures",
29 "test": "ava",
30 "posttest": "npm run lint",
31 "coverage": "nyc npm test",
32 "watch:build": "npm run build -- --watch",
33 "watch:test": "npm run test -- --watch"
34 },
35 "repository": {
36 "type": "git",
37 "url": "git+https://github.com/novemberborn/package-hash.git"
38 },
39 "author": {
40 "name": "Mark Wubben",
41 "url": "https://novemberborn.net/"
42 },
43 "license": "ISC",
44 "bugs": {
45 "url": "https://github.com/novemberborn/package-hash/issues"
46 },
47 "homepage": "https://github.com/novemberborn/package-hash#readme",
48 "dependencies": {
49 "md5-hex": "^1.3.0"
50 },
51 "devDependencies": {
52 "@novemberborn/as-i-preach": "^2.0.1",
53 "ava": "^0.14.0",
54 "babel-cli": "^6.7.5",
55 "babel-plugin-transform-es2015-block-scoping": "^6.7.1",
56 "babel-plugin-transform-es2015-modules-commonjs": "^6.7.4",
57 "babel-plugin-transform-es2015-shorthand-properties": "^6.5.0",
58 "babel-plugin-transform-object-assign": "^6.5.0",
59 "babel-plugin-transform-strict-mode": "^6.6.5",
60 "nyc": "^6.4.0",
61 "proxyquire": "^1.7.4",
62 "rimraf": "^2.5.2",
63 "tar": "^2.2.1"
64 },
65 "babel": {
66 "plugins": [
67 "transform-object-assign",
68 "transform-es2015-block-scoping",
69 "transform-es2015-modules-commonjs",
70 "transform-es2015-shorthand-properties",
71 "transform-strict-mode"
72 ]
73 },
74 "nyc": {
75 "cache": true,
76 "exclude": [
77 "scripts",
78 "test"
79 ],
80 "reporter": [
81 "html",
82 "lcov",
83 "text"
84 ]
85 },
86 "gitHead": "69a328840818d336ae13af22f9af092208fcb49b",
87 "_id": "[email protected]",
88 "_shasum": "8a56413d7754562e651917fc4b4399f704e19af8",
89 "_from": ".",
90 "_npmVersion": "3.8.6",
91 "_nodeVersion": "5.10.1",
92 "_npmUser": {
93 "name": "novemberborn",
94 "email": "[email protected]"
95 },
96 "dist": {
97 "shasum": "8a56413d7754562e651917fc4b4399f704e19af8",
98 "tarball": "https://registry.npmjs.org/package-hash/-/package-hash-1.0.0.tgz"
99 },
100 "maintainers": [
101 {
102 "name": "novemberborn",
103 "email": "[email protected]"
104 }
105 ],
106 "_npmOperationalInternal": {
107 "host": "packages-12-west.internal.npmjs.com",
108 "tmp": "tmp/package-hash-1.0.0.tgz_1460655212274_0.9062121566385031"
109 },
110 "directories": {}
111 },
112 "1.1.0": {
113 "name": "package-hash",
114 "version": "1.1.0",
115 "description": "Generates a hash for an installed npm package, useful for salting caches",
116 "main": "index.js",
117 "files": [
118 "index.js",
119 "index.js.map"
120 ],
121 "scripts": {
122 "clean": "rimraf index.js index.js.map",
123 "prebuild": "npm run clean",
124 "build": "babel src --out-dir ./ --source-maps",
125 "prepublish": "npm run build",
126 "lint": "as-i-preach",
127 "unpack-fixtures": "node scripts/unpack-fixtures.js",
128 "pregenerate-fixture-index": "npm run unpack-fixtures",
129 "generate-fixture-index": "node scripts/generate-fixture-index.js",
130 "pretest": "npm run unpack-fixtures",
131 "test": "ava",
132 "posttest": "npm run lint",
133 "coverage": "nyc npm test",
134 "watch:build": "npm run build -- --watch",
135 "watch:test": "npm run test -- --watch"
136 },
137 "repository": {
138 "type": "git",
139 "url": "git+https://github.com/novemberborn/package-hash.git"
140 },
141 "author": {
142 "name": "Mark Wubben",
143 "url": "https://novemberborn.net/"
144 },
145 "license": "ISC",
146 "bugs": {
147 "url": "https://github.com/novemberborn/package-hash/issues"
148 },
149 "homepage": "https://github.com/novemberborn/package-hash#readme",
150 "dependencies": {
151 "md5-hex": "^1.3.0"
152 },
153 "devDependencies": {
154 "@novemberborn/as-i-preach": "^2.0.1",
155 "ava": "^0.14.0",
156 "babel-cli": "^6.7.5",
157 "babel-plugin-transform-es2015-block-scoping": "^6.7.1",
158 "babel-plugin-transform-es2015-modules-commonjs": "^6.7.4",
159 "babel-plugin-transform-es2015-shorthand-properties": "^6.5.0",
160 "babel-plugin-transform-object-assign": "^6.5.0",
161 "babel-plugin-transform-strict-mode": "^6.6.5",
162 "nyc": "^6.4.0",
163 "proxyquire": "^1.7.4",
164 "rimraf": "^2.5.2",
165 "tar": "^2.2.1"
166 },
167 "babel": {
168 "plugins": [
169 "transform-object-assign",
170 "transform-es2015-block-scoping",
171 "transform-es2015-modules-commonjs",
172 "transform-es2015-shorthand-properties",
173 "transform-strict-mode"
174 ]
175 },
176 "nyc": {
177 "cache": true,
178 "exclude": [
179 "scripts",
180 "test"
181 ],
182 "reporter": [
183 "html",
184 "lcov",
185 "text"
186 ]
187 },
188 "gitHead": "a254af98aff451f6547671c341c17ddc16e2d098",
189 "_id": "[email protected]",
190 "_shasum": "a1436137d864b752396fa1f057772ce5fe7d8c3c",
191 "_from": ".",
192 "_npmVersion": "3.8.7",
193 "_nodeVersion": "5.10.1",
194 "_npmUser": {
195 "name": "novemberborn",
196 "email": "[email protected]"
197 },
198 "dist": {
199 "shasum": "a1436137d864b752396fa1f057772ce5fe7d8c3c",
200 "tarball": "https://registry.npmjs.org/package-hash/-/package-hash-1.1.0.tgz"
201 },
202 "maintainers": [
203 {
204 "name": "novemberborn",
205 "email": "[email protected]"
206 }
207 ],
208 "_npmOperationalInternal": {
209 "host": "packages-16-east.internal.npmjs.com",
210 "tmp": "tmp/package-hash-1.1.0.tgz_1460912724001_0.09321424411609769"
211 },
212 "directories": {}
213 },
214 "1.2.0": {
215 "name": "package-hash",
216 "version": "1.2.0",
217 "description": "Generates a hash for an installed npm package, useful for salting caches",
218 "main": "index.js",
219 "files": [
220 "index.js",
221 "index.js.map"
222 ],
223 "scripts": {
224 "clean": "rimraf index.js index.js.map",
225 "prebuild": "npm run clean",
226 "build": "babel src --out-dir ./ --source-maps",
227 "prepublish": "npm run build",
228 "lint": "as-i-preach",
229 "unpack-fixtures": "node scripts/unpack-fixtures.js",
230 "pregenerate-fixture-index": "npm run unpack-fixtures",
231 "generate-fixture-index": "node scripts/generate-fixture-index.js",
232 "pretest": "npm run unpack-fixtures",
233 "test": "ava",
234 "posttest": "npm run lint",
235 "coverage": "nyc npm test",
236 "watch:build": "npm run build -- --watch",
237 "watch:test": "npm run test -- --watch"
238 },
239 "repository": {
240 "type": "git",
241 "url": "git+https://github.com/novemberborn/package-hash.git"
242 },
243 "author": {
244 "name": "Mark Wubben",
245 "url": "https://novemberborn.net/"
246 },
247 "license": "ISC",
248 "bugs": {
249 "url": "https://github.com/novemberborn/package-hash/issues"
250 },
251 "homepage": "https://github.com/novemberborn/package-hash#readme",
252 "dependencies": {
253 "md5-hex": "^1.3.0"
254 },
255 "devDependencies": {
256 "@novemberborn/as-i-preach": "^2.0.1",
257 "ava": "^0.14.0",
258 "babel-cli": "^6.7.5",
259 "babel-plugin-transform-es2015-block-scoping": "^6.7.1",
260 "babel-plugin-transform-es2015-modules-commonjs": "^6.7.4",
261 "babel-plugin-transform-es2015-shorthand-properties": "^6.5.0",
262 "babel-plugin-transform-object-assign": "^6.5.0",
263 "babel-plugin-transform-strict-mode": "^6.6.5",
264 "nyc": "^6.4.0",
265 "proxyquire": "^1.7.4",
266 "rimraf": "^2.5.2",
267 "tar": "^2.2.1"
268 },
269 "babel": {
270 "plugins": [
271 "transform-object-assign",
272 "transform-es2015-block-scoping",
273 "transform-es2015-modules-commonjs",
274 "transform-es2015-shorthand-properties",
275 "transform-strict-mode"
276 ]
277 },
278 "nyc": {
279 "cache": true,
280 "exclude": [
281 "scripts",
282 "test"
283 ],
284 "reporter": [
285 "html",
286 "lcov",
287 "text"
288 ]
289 },
290 "gitHead": "2a14f0f767017f941aab62cd44c3c14689f6b843",
291 "_id": "[email protected]",
292 "_shasum": "003e56cd57b736a6ed6114cc2b81542672770e44",
293 "_from": ".",
294 "_npmVersion": "3.8.7",
295 "_nodeVersion": "5.10.1",
296 "_npmUser": {
297 "name": "novemberborn",
298 "email": "[email protected]"
299 },
300 "dist": {
301 "shasum": "003e56cd57b736a6ed6114cc2b81542672770e44",
302 "tarball": "https://registry.npmjs.org/package-hash/-/package-hash-1.2.0.tgz"
303 },
304 "maintainers": [
305 {
306 "name": "novemberborn",
307 "email": "[email protected]"
308 }
309 ],
310 "_npmOperationalInternal": {
311 "host": "packages-16-east.internal.npmjs.com",
312 "tmp": "tmp/package-hash-1.2.0.tgz_1463403606290_0.8582867733202875"
313 },
314 "directories": {}
315 },
316 "2.0.0": {
317 "name": "package-hash",
318 "version": "2.0.0",
319 "description": "Generates a hash for an installed npm package, useful for salting caches",
320 "main": "index.js",
321 "files": [
322 "index.js"
323 ],
324 "engines": {
325 "node": ">=4"
326 },
327 "scripts": {
328 "lint": "as-i-preach",
329 "unpack-fixtures": "node scripts/unpack-fixtures.js",
330 "pregenerate-fixture-index": "npm run unpack-fixtures",
331 "generate-fixture-index": "node scripts/generate-fixture-index.js",
332 "pretest": "npm run unpack-fixtures",
333 "test": "ava",
334 "posttest": "npm run lint",
335 "coverage": "nyc npm test",
336 "watch:test": "npm run test -- --watch"
337 },
338 "repository": {
339 "type": "git",
340 "url": "git+https://github.com/novemberborn/package-hash.git"
341 },
342 "author": {
343 "name": "Mark Wubben",
344 "url": "https://novemberborn.net/"
345 },
346 "license": "ISC",
347 "bugs": {
348 "url": "https://github.com/novemberborn/package-hash/issues"
349 },
350 "homepage": "https://github.com/novemberborn/package-hash#readme",
351 "dependencies": {
352 "graceful-fs": "^4.1.11",
353 "lodash.flattendeep": "^4.4.0",
354 "md5-hex": "^2.0.0",
355 "release-zalgo": "^1.0.0"
356 },
357 "devDependencies": {
358 "@novemberborn/as-i-preach": "^7.0.0",
359 "ava": "^0.18.0",
360 "coveralls": "^2.11.15",
361 "nyc": "^10.0.0",
362 "rimraf": "^2.5.2",
363 "tar": "^2.2.1"
364 },
365 "nyc": {
366 "cache": true,
367 "exclude": [
368 "scripts",
369 "test"
370 ],
371 "reporter": [
372 "html",
373 "lcov",
374 "text"
375 ]
376 },
377 "standard-engine": "@novemberborn/as-i-preach",
378 "gitHead": "764189d31b2a659051b7b6b7a784095e8ce22863",
379 "_id": "[email protected]",
380 "_shasum": "78ae326c89e05a4d813b68601977af05c00d2a0d",
381 "_from": ".",
382 "_npmVersion": "4.1.2",
383 "_nodeVersion": "7.4.0",
384 "_npmUser": {
385 "name": "novemberborn",
386 "email": "[email protected]"
387 },
388 "dist": {
389 "shasum": "78ae326c89e05a4d813b68601977af05c00d2a0d",
390 "tarball": "https://registry.npmjs.org/package-hash/-/package-hash-2.0.0.tgz"
391 },
392 "maintainers": [
393 {
394 "name": "novemberborn",
395 "email": "[email protected]"
396 }
397 ],
398 "_npmOperationalInternal": {
399 "host": "packages-12-west.internal.npmjs.com",
400 "tmp": "tmp/package-hash-2.0.0.tgz_1486138677677_0.8842510140966624"
401 },
402 "directories": {}
403 },
404 "3.0.0": {
405 "name": "package-hash",
406 "version": "3.0.0",
407 "description": "Generates a hash for an installed npm package, useful for salting caches",
408 "main": "index.js",
409 "engines": {
410 "node": ">=6"
411 },
412 "scripts": {
413 "lint": "as-i-preach",
414 "unpack-fixtures": "node scripts/unpack-fixtures.js",
415 "pregenerate-fixture-index": "npm run unpack-fixtures",
416 "generate-fixture-index": "node scripts/generate-fixture-index.js",
417 "pretest": "npm run unpack-fixtures",
418 "test": "ava",
419 "posttest": "npm run lint",
420 "coverage": "nyc npm test",
421 "watch:test": "npm run test -- --watch"
422 },
423 "repository": {
424 "type": "git",
425 "url": "git+https://github.com/novemberborn/package-hash.git"
426 },
427 "author": {
428 "name": "Mark Wubben",
429 "url": "https://novemberborn.net/"
430 },
431 "license": "ISC",
432 "bugs": {
433 "url": "https://github.com/novemberborn/package-hash/issues"
434 },
435 "homepage": "https://github.com/novemberborn/package-hash#readme",
436 "dependencies": {
437 "graceful-fs": "^4.1.15",
438 "hasha": "^3.0.0",
439 "lodash.flattendeep": "^4.4.0",
440 "release-zalgo": "^1.0.0"
441 },
442 "devDependencies": {
443 "@novemberborn/as-i-preach": "^11.0.0",
444 "ava": "^1.1.0",
445 "codecov": "^3.1.0",
446 "nyc": "^13.1.0",
447 "rimraf": "^2.6.3",
448 "tar": "^4.4.8"
449 },
450 "nyc": {
451 "cache": true,
452 "exclude": [
453 "scripts",
454 "test"
455 ],
456 "reporter": [
457 "html",
458 "lcov",
459 "text"
460 ]
461 },
462 "standard-engine": "@novemberborn/as-i-preach",
463 "gitHead": "d2682c959cb26013b31eb30595449f057b28904e",
464 "_id": "[email protected]",
465 "_npmVersion": "6.4.1",
466 "_nodeVersion": "10.14.0",
467 "_npmUser": {
468 "name": "novemberborn",
469 "email": "[email protected]"
470 },
471 "dist": {
472 "integrity": "sha512-lOtmukMDVvtkL84rJHI7dpTYq+0rli8N2wlnqUcBuDWCfVhRUfOmnR9SsoHFMLpACvEV60dX7rd0rFaYDZI+FA==",
473 "shasum": "50183f2d36c9e3e528ea0a8605dff57ce976f88e",
474 "tarball": "https://registry.npmjs.org/package-hash/-/package-hash-3.0.0.tgz",
475 "fileCount": 4,
476 "unpackedSize": 9351,
477 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPwnqCRA9TVsSAnZWagAA3z4QAJqtPina3HyREjZ/2ZvR\nU1c5ULs3Cf2UFAKEvNuj6CgFhF7pf+5RYGl6Xi0SjL8UU6I9NdhJhgKfZkl+\npPHQOWJZrI3DgSP/4HI9O9x69GGMj1TWtOWdQw342sN+9+gukp5BNB1bhJ/P\nguZ4gAbeJ3iATXevDQ8bFy9Xyzhn6UmwTr0UmluIhoIw7eI/r8Tk4QvjkSJ9\nmWoD8fnQexfgDawdM7FX6VPd1QGMA+TYGACy5vOJ8ze0FgNr6ZmbLeXPxg2R\nqwj49j14v3ir5XV/vsDfJHfSkDbKunxO7FcQwicirJYmnoZJNb0NMm9KBnhf\n1P6KSLVleJU3bJgIqMX9zpGiDWc/yc3GyeGdzrjJB4zhVlUN0wisqG7NN2IR\nekK5DKmSplxdt9Xg/D7Qe0U1v7eD6PXo33MoRc8vNHgvEBZvn4X/3HH0vdum\nmV0xsjxZ6kpy+UBGFWfvfpqoifU5Fx3lAZbcD2KYM6xjSUssIGLf811WWif8\nLlj1egiRT4LzfAT9YaDt/GEZfgpbTPTYGZP3RsVHglj1NqPubh//+lgPzKsu\nfahsQ2NSWgoqhmNRO/SJH+5zyD46QZjfX+MWgQ2rwTsXmt38z+jvbQ1LgnnA\ntB5LQkZ1/IlpzTd3MZr4SIeZmS1UMGWGMC1+6hrqSwt+3EkfByaEOvMpJDxi\nR/HP\r\n=ERA3\r\n-----END PGP SIGNATURE-----\r\n"
478 },
479 "maintainers": [
480 {
481 "name": "novemberborn",
482 "email": "[email protected]"
483 }
484 ],
485 "directories": {},
486 "_npmOperationalInternal": {
487 "host": "s3://npm-registry-packages",
488 "tmp": "tmp/package-hash_3.0.0_1547635177860_0.037036260692207223"
489 },
490 "_hasShrinkwrap": false
491 },
492 "4.0.0": {
493 "name": "package-hash",
494 "version": "4.0.0",
495 "description": "Generates a hash for an installed npm package, useful for salting caches",
496 "main": "index.js",
497 "engines": {
498 "node": ">=8"
499 },
500 "scripts": {
501 "lint": "as-i-preach",
502 "unpack-fixtures": "node scripts/unpack-fixtures.js",
503 "pregenerate-fixture-index": "npm run unpack-fixtures",
504 "generate-fixture-index": "node scripts/generate-fixture-index.js",
505 "pretest": "npm run unpack-fixtures",
506 "test": "ava",
507 "posttest": "npm run lint",
508 "coverage": "nyc npm test",
509 "watch:test": "npm run test -- --watch"
510 },
511 "repository": {
512 "type": "git",
513 "url": "git+https://github.com/novemberborn/package-hash.git"
514 },
515 "author": {
516 "name": "Mark Wubben",
517 "url": "https://novemberborn.net/"
518 },
519 "license": "ISC",
520 "bugs": {
521 "url": "https://github.com/novemberborn/package-hash/issues"
522 },
523 "homepage": "https://github.com/novemberborn/package-hash#readme",
524 "dependencies": {
525 "graceful-fs": "^4.1.15",
526 "hasha": "^5.0.0",
527 "lodash.flattendeep": "^4.4.0",
528 "release-zalgo": "^1.0.0"
529 },
530 "devDependencies": {
531 "@novemberborn/as-i-preach": "^11.0.0",
532 "ava": "^1.4.1",
533 "codecov": "^3.3.0",
534 "nyc": "^13.3.0",
535 "rimraf": "^2.6.3",
536 "tar": "^4.4.8"
537 },
538 "nyc": {
539 "cache": true,
540 "exclude": [
541 "scripts",
542 "test"
543 ],
544 "reporter": [
545 "html",
546 "lcov",
547 "text"
548 ]
549 },
550 "standard-engine": "@novemberborn/as-i-preach",
551 "gitHead": "6afce110db308d4ed70dbdb5658fc4ec50522c86",
552 "_id": "[email protected]",
553 "_npmVersion": "6.4.1",
554 "_nodeVersion": "10.15.3",
555 "_npmUser": {
556 "name": "coreyfarrell",
557 "email": "[email protected]"
558 },
559 "dist": {
560 "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==",
561 "shasum": "3537f654665ec3cc38827387fc904c163c54f506",
562 "tarball": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz",
563 "fileCount": 4,
564 "unpackedSize": 9180,
565 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcrQ5GCRA9TVsSAnZWagAAlrAP/3xaHUwDLhwz+Gr9yv+8\naxmXiu80VO8fMSiSxVBKr87Iq1ncthXS44j5eIJFy0h+Rm6LIVb3Lf1fUaOO\n9ooQVUJ+tjQGXejEwNicqbiGk4xsyhENTwe/C7YRH/4WVYadyqmun38eXYvx\njzpgBkLQdl8PNU6RSySUPwcZFYhqAI0enoIsCWkn2nD5eaIdOEMUBXph0OfS\nTRn1bFUuxvGXBAro0zBMs94NSBwt/zpyv6pWqdej18EKTdkmoRDGs3Dh1Wjy\nZdavO8S/nYfWlyNTttaxO88fbva8gYNNjQF7/i+ki4wd+Mwc3gDM9HYOxZtb\nwEKn0KqlUUAOCHIDBxskVMXjZdRZgfZY4l8DhR2frlzRE0+KSc7wAFAnVrb1\nAKyLLp/hrnENahV5d0VNoMKQFwbC6KCI4RmsxkU6Wc69kr0LNbSjRszVNdnt\nUZ1Y1QsxHu5/3guO3QC/V09vlnnIFt6UxkH//O2Mc98go3R5fTYzSt/k9s8v\nAtNbPyssHxOsdN7xhZdoa4KyJb1EQRuE7XDJE6No8bZB3cNgH1/PRFWQKNh0\ncXeuSquTNPRLDN8JGY0122Zzf3ZFOfGvpTfyzwqIV6OqTqiELQGeC3Glj4Sm\nRRXjFuxvGTyF+BXaBoCK0vnowUNwh6YIXt0t4MqhIfQd+pwdGj+ZvIQgcee2\nMhD7\r\n=8KO1\r\n-----END PGP SIGNATURE-----\r\n"
566 },
567 "maintainers": [
568 {
569 "email": "[email protected]",
570 "name": "coreyfarrell"
571 },
572 {
573 "email": "[email protected]",
574 "name": "novemberborn"
575 }
576 ],
577 "directories": {},
578 "_npmOperationalInternal": {
579 "host": "s3://npm-registry-packages",
580 "tmp": "tmp/package-hash_4.0.0_1554845253173_0.6326632071221292"
581 },
582 "_hasShrinkwrap": false
583 }
584 },
585 "readme": "# package-hash\n\nGenerates a hash for an installed npm package, useful for salting caches.\n[AVA](https://github.com/sindresorhus/ava) for example caches precompiled test\nfiles. It generates a salt for its cache based on the various packages that are\nused when compiling the test files.\n\n`package-hash` can generate an appropriate hash based on the package location\n(on disk) and the `package.json` file. This hash is salted with a hash\nfor the `package-hash` itself.\n\n`package-hash` can detect when the package-to-be-hashed is a Git repository. In\nthe AVA example this is useful when you're debugging one of the packages used to\ncompile the test files. You can clone it locally and use `npm link` so AVA can\nfind the clone. The hash will include the HEAD (`.git/HEAD`) and its\ncorresponding ref (e.g. `.git/refs/heads/master`), any packed refs\n(`.git/packed-refs`), as well as the diff (`git diff`) for any non-committed\nchanges. This makes it really easy to test your changes without having to\nexplicitly clear the cache in the parent project.\n\n## Installation\n\n```console\n$ npm install --save package-hash\n```\n\n## Usage\n\n```js\nconst packageHash = require('package-hash')\n\n// Asynchronously:\nconst hash = await packageHash(require.resolve('babel-core/package.json'))\n\n// Synchronously:\nconst hash = packageHash.sync(require.resolve('babel-core/package.json'))\n```\n\n`packageHash()` / `packageHash.sync()` must be called with a file path for an\nexisting `package.json` file. To get the path to an npm package it's easiest to\nuse `require.resolve('the-name/package.json')`.\n\nYou can provide multiple paths:\n\n```js\nconst hash = await packageHash([\n require.resolve('babel-core/package.json'),\n require.resolve('babel-preset-es2015/package.json')\n])\n```\n\nAn optional salt value can also be provided:\n\n```js\nconst hash = await packageHash(require.resolve('babel-core/package.json'), 'salt value')\n```\n\n## API\n\n### `packageHash(paths, salt?)`\n\n`paths: string | string[]` ➜ can be a single file path, or an array of paths.\n\n`salt: Array | Buffer | Object | string` ➜ optional. If an `Array` or `Object` (not `null`) it is first converted to a JSON string.\n\nReturns a promise for the hex-encoded hash string.\n\n### `packageHash.sync(paths, salt?)`\n\n`paths: string | string[]` ➜ can be a single file path, or an array of paths.\n\n`salt: Array | Buffer | Object | string` ➜ optional. If an `Array` or `Object` (not `null`) it is first converted to a JSON string.\n\nReturns a hex-encoded hash string.\n\n## Compatibility\n\n`package-hash` has been tested with Node.js 8 and above, including Windows\nsupport.\n",
586 "maintainers": [
587 {
588 "email": "[email protected]",
589 "name": "coreyfarrell"
590 },
591 {
592 "email": "[email protected]",
593 "name": "novemberborn"
594 }
595 ],
596 "time": {
597 "modified": "2019-04-09T21:27:37.754Z",
598 "created": "2016-04-14T17:33:34.885Z",
599 "1.0.0": "2016-04-14T17:33:34.885Z",
600 "1.1.0": "2016-04-17T17:05:25.230Z",
601 "1.2.0": "2016-05-16T13:00:08.288Z",
602 "2.0.0": "2017-02-03T16:17:59.390Z",
603 "3.0.0": "2019-01-16T10:39:37.952Z",
604 "4.0.0": "2019-04-09T21:27:33.385Z"
605 },
606 "homepage": "https://github.com/novemberborn/package-hash#readme",
607 "repository": {
608 "type": "git",
609 "url": "git+https://github.com/novemberborn/package-hash.git"
610 },
611 "author": {
612 "name": "Mark Wubben",
613 "url": "https://novemberborn.net/"
614 },
615 "bugs": {
616 "url": "https://github.com/novemberborn/package-hash/issues"
617 },
618 "license": "ISC",
619 "readmeFilename": "README.md",
620 "users": {
621 "novemberborn": true
622 }
623 }