Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/exit-hook.json

raw
1 {
2 "_id": "exit-hook",
3 "_rev": "14-11162170983fcb249dadcdb59af9f468",
4 "name": "exit-hook",
5 "description": "Run some code when the process exits",
6 "dist-tags": {
7 "latest": "2.2.0"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "exit-hook",
12 "version": "1.0.0",
13 "description": "Run some code when the process exits",
14 "license": "MIT",
15 "repository": {
16 "type": "git",
17 "url": "git://github.com/sindresorhus/exit-hook"
18 },
19 "author": {
20 "name": "Sindre Sorhus",
21 "email": "[email protected]",
22 "url": "http://sindresorhus.com"
23 },
24 "engines": {
25 "node": ">=0.10.0"
26 },
27 "scripts": {
28 "test": "node test.js"
29 },
30 "files": [
31 "index.js"
32 ],
33 "keywords": [
34 "exit",
35 "quit",
36 "process",
37 "hook",
38 "graceful",
39 "handler",
40 "shutdown",
41 "sigterm",
42 "sigint",
43 "terminate",
44 "kill",
45 "stop",
46 "event"
47 ],
48 "devDependencies": {
49 "ava": "0.0.4"
50 },
51 "bugs": {
52 "url": "https://github.com/sindresorhus/exit-hook/issues"
53 },
54 "homepage": "https://github.com/sindresorhus/exit-hook",
55 "_id": "[email protected]",
56 "_shasum": "84e17510af2f170df709c84bb70ba315b00c9019",
57 "_from": ".",
58 "_npmVersion": "1.4.9",
59 "_npmUser": {
60 "name": "sindresorhus",
61 "email": "[email protected]"
62 },
63 "maintainers": [
64 {
65 "name": "sindresorhus",
66 "email": "[email protected]"
67 }
68 ],
69 "dist": {
70 "shasum": "84e17510af2f170df709c84bb70ba315b00c9019",
71 "tarball": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.0.0.tgz"
72 },
73 "directories": {}
74 },
75 "1.1.0": {
76 "name": "exit-hook",
77 "version": "1.1.0",
78 "description": "Run some code when the process exits",
79 "license": "MIT",
80 "repository": {
81 "type": "git",
82 "url": "git://github.com/sindresorhus/exit-hook"
83 },
84 "author": {
85 "name": "Sindre Sorhus",
86 "email": "[email protected]",
87 "url": "http://sindresorhus.com"
88 },
89 "engines": {
90 "node": ">=0.10.0"
91 },
92 "scripts": {
93 "test": "node test.js"
94 },
95 "files": [
96 "index.js"
97 ],
98 "keywords": [
99 "exit",
100 "quit",
101 "process",
102 "hook",
103 "graceful",
104 "handler",
105 "shutdown",
106 "sigterm",
107 "sigint",
108 "terminate",
109 "kill",
110 "stop",
111 "event"
112 ],
113 "devDependencies": {
114 "ava": "0.0.4"
115 },
116 "bugs": {
117 "url": "https://github.com/sindresorhus/exit-hook/issues"
118 },
119 "homepage": "https://github.com/sindresorhus/exit-hook",
120 "_id": "[email protected]",
121 "_shasum": "06f5ef551030ed7c0e3bc5148ee64c9f5626df87",
122 "_from": ".",
123 "_npmVersion": "1.4.9",
124 "_npmUser": {
125 "name": "sindresorhus",
126 "email": "[email protected]"
127 },
128 "maintainers": [
129 {
130 "name": "sindresorhus",
131 "email": "[email protected]"
132 }
133 ],
134 "dist": {
135 "shasum": "06f5ef551030ed7c0e3bc5148ee64c9f5626df87",
136 "tarball": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.0.tgz"
137 },
138 "directories": {}
139 },
140 "1.1.1": {
141 "name": "exit-hook",
142 "version": "1.1.1",
143 "description": "Run some code when the process exits",
144 "license": "MIT",
145 "repository": {
146 "type": "git",
147 "url": "git://github.com/sindresorhus/exit-hook"
148 },
149 "author": {
150 "name": "Sindre Sorhus",
151 "email": "[email protected]",
152 "url": "http://sindresorhus.com"
153 },
154 "engines": {
155 "node": ">=0.10.0"
156 },
157 "scripts": {
158 "test": "node test.js"
159 },
160 "files": [
161 "index.js"
162 ],
163 "keywords": [
164 "exit",
165 "quit",
166 "process",
167 "hook",
168 "graceful",
169 "handler",
170 "shutdown",
171 "sigterm",
172 "sigint",
173 "terminate",
174 "kill",
175 "stop",
176 "event"
177 ],
178 "devDependencies": {
179 "ava": "0.0.4"
180 },
181 "bugs": {
182 "url": "https://github.com/sindresorhus/exit-hook/issues"
183 },
184 "homepage": "https://github.com/sindresorhus/exit-hook",
185 "_id": "[email protected]",
186 "_shasum": "f05ca233b48c05d54fff07765df8507e95c02ff8",
187 "_from": ".",
188 "_npmVersion": "1.4.9",
189 "_npmUser": {
190 "name": "sindresorhus",
191 "email": "[email protected]"
192 },
193 "maintainers": [
194 {
195 "name": "sindresorhus",
196 "email": "[email protected]"
197 }
198 ],
199 "dist": {
200 "shasum": "f05ca233b48c05d54fff07765df8507e95c02ff8",
201 "tarball": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz"
202 },
203 "directories": {}
204 },
205 "2.0.0": {
206 "name": "exit-hook",
207 "version": "2.0.0",
208 "description": "Run some code when the process exits",
209 "license": "MIT",
210 "repository": {
211 "type": "git",
212 "url": "git+https://github.com/sindresorhus/exit-hook.git"
213 },
214 "author": {
215 "name": "Sindre Sorhus",
216 "email": "[email protected]",
217 "url": "sindresorhus.com"
218 },
219 "engines": {
220 "node": ">=6"
221 },
222 "scripts": {
223 "test": "xo && ava"
224 },
225 "files": [
226 "index.js"
227 ],
228 "keywords": [
229 "exit",
230 "quit",
231 "process",
232 "hook",
233 "graceful",
234 "handler",
235 "shutdown",
236 "sigterm",
237 "sigint",
238 "terminate",
239 "kill",
240 "stop",
241 "event",
242 "signal"
243 ],
244 "devDependencies": {
245 "ava": "*",
246 "execa": "^0.10.0",
247 "xo": "*"
248 },
249 "gitHead": "352e462d37878371ce7a54381b37a6be2369dfed",
250 "bugs": {
251 "url": "https://github.com/sindresorhus/exit-hook/issues"
252 },
253 "homepage": "https://github.com/sindresorhus/exit-hook#readme",
254 "_id": "[email protected]",
255 "_npmVersion": "5.6.0",
256 "_nodeVersion": "8.10.0",
257 "_npmUser": {
258 "name": "sindresorhus",
259 "email": "[email protected]"
260 },
261 "dist": {
262 "integrity": "sha512-usCR1VCwZTqwnGjf2tZ4RlkM+E8W7sss2DXjXEBLpd5A9gOY9z/iJhVr2mFkk0o816tZqpuXCkcSTVzAdVXAXw==",
263 "shasum": "b89f6f69b7d080efc2807c66a85957722637db92",
264 "tarball": "https://registry.npmjs.org/exit-hook/-/exit-hook-2.0.0.tgz",
265 "fileCount": 4,
266 "unpackedSize": 3438
267 },
268 "maintainers": [
269 {
270 "name": "sindresorhus",
271 "email": "[email protected]"
272 }
273 ],
274 "directories": {},
275 "_npmOperationalInternal": {
276 "host": "s3://npm-registry-packages",
277 "tmp": "tmp/exit-hook_2.0.0_1521907482159_0.595395127353517"
278 },
279 "_hasShrinkwrap": false
280 },
281 "2.1.0": {
282 "name": "exit-hook",
283 "version": "2.1.0",
284 "description": "Run some code when the process exits",
285 "license": "MIT",
286 "repository": {
287 "type": "git",
288 "url": "git+https://github.com/sindresorhus/exit-hook.git"
289 },
290 "author": {
291 "name": "Sindre Sorhus",
292 "email": "[email protected]",
293 "url": "sindresorhus.com"
294 },
295 "engines": {
296 "node": ">=6"
297 },
298 "scripts": {
299 "test": "xo && ava"
300 },
301 "keywords": [
302 "exit",
303 "quit",
304 "process",
305 "hook",
306 "graceful",
307 "handler",
308 "shutdown",
309 "sigterm",
310 "sigint",
311 "terminate",
312 "kill",
313 "stop",
314 "event",
315 "signal"
316 ],
317 "devDependencies": {
318 "ava": "*",
319 "execa": "^0.10.0",
320 "xo": "*"
321 },
322 "gitHead": "79c3bcecff582833d77cf5a81696a8299abb3ab5",
323 "bugs": {
324 "url": "https://github.com/sindresorhus/exit-hook/issues"
325 },
326 "homepage": "https://github.com/sindresorhus/exit-hook#readme",
327 "_id": "[email protected]",
328 "_nodeVersion": "8.15.0",
329 "_npmVersion": "6.9.0",
330 "_npmUser": {
331 "name": "sindresorhus",
332 "email": "[email protected]"
333 },
334 "dist": {
335 "integrity": "sha512-JCSm9Znc/KW6hoKYHOIqLxM2Z88+AQcabo07rJHZSyXcQIq6HsXkSWRVZRp13RFkGVIDcz1DRIbKR5cnU1uzCA==",
336 "shasum": "2be08d8d01220050878577bfa017e104a6c3bcf3",
337 "tarball": "https://registry.npmjs.org/exit-hook/-/exit-hook-2.1.0.tgz",
338 "fileCount": 4,
339 "unpackedSize": 3620,
340 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcrFfUCRA9TVsSAnZWagAAaXcP/1SFjXxTPZWQOTHViWVv\nUQYebm5HxckvDIDBnEbWGs66wZaIMNfWK4VF+Im0LlBsu/nZuWuhXunMU4rv\n33b6YowxRQItduXbTvIP9r+80F+qBqGQQpQn6r3hdwNtM4WVKI5tbXGpkujz\ntQVdFCqE0CPOsn2QQAoH8Mpbkk7BfaltDIKdgrcYk9SWb3+y8wECXqpcAxVJ\noy68VxbJq3PEZtHhg21kHoDxGygapaiUULY+lZIUC70rXkNFQS5yRdbJLJ9p\ny55FzTYT8HqBuh1gtMAH4vjF7nz0rCMaJyGBbo2mfKGvBLyfu0FuZ+K1Uqb5\nU83EEP+rc6zGCG8yMVRQDx4YbP5c5mDvuWS4WhHy+nnBQtFAtGDLls3mP+rj\nt/0IEtS4NteyClCeX4eI7P9JuyOiVZVIv169elX3OsjhHlPeDmPoVwwkkDk8\nYBKizeXtjnIVuZFkoyikviq9lRoj9xv3hvNYSYVydRol4B1s6I8oQxSRu+yq\nEF+KqKyj+D2PyKyJg6ZAnPV15U6PUjM0j13kOjMCkSMjeug4RbXJFiN5IJcZ\nc0veDHiFj7NQml0oSHZRo4lioqaqE3cctmln4RZlxJ4Dy4ZYK3zalB923W/1\no9oaDIiGPaAm8VyzlKMCOVdbFT2FVFhihKeossF6sJO+uAnbrkxKxy4vvQy4\nOT1F\r\n=4atc\r\n-----END PGP SIGNATURE-----\r\n"
341 },
342 "maintainers": [
343 {
344 "name": "sindresorhus",
345 "email": "[email protected]"
346 }
347 ],
348 "directories": {},
349 "_npmOperationalInternal": {
350 "host": "s3://npm-registry-packages",
351 "tmp": "tmp/exit-hook_2.1.0_1554798547565_0.05841812565502913"
352 },
353 "_hasShrinkwrap": false
354 },
355 "2.2.0": {
356 "name": "exit-hook",
357 "version": "2.2.0",
358 "description": "Run some code when the process exits",
359 "license": "MIT",
360 "repository": {
361 "type": "git",
362 "url": "git+https://github.com/sindresorhus/exit-hook.git"
363 },
364 "author": {
365 "name": "Sindre Sorhus",
366 "email": "[email protected]",
367 "url": "sindresorhus.com"
368 },
369 "engines": {
370 "node": ">=6"
371 },
372 "scripts": {
373 "test": "xo && ava && tsd"
374 },
375 "keywords": [
376 "exit",
377 "quit",
378 "process",
379 "hook",
380 "graceful",
381 "handler",
382 "shutdown",
383 "sigterm",
384 "sigint",
385 "terminate",
386 "kill",
387 "stop",
388 "event",
389 "signal"
390 ],
391 "devDependencies": {
392 "ava": "^1.4.1",
393 "execa": "^1.0.0",
394 "tsd": "^0.7.2",
395 "xo": "^0.24.0"
396 },
397 "gitHead": "f07fd96864d7c8c013ae8fb361ecb82d77a122f5",
398 "bugs": {
399 "url": "https://github.com/sindresorhus/exit-hook/issues"
400 },
401 "homepage": "https://github.com/sindresorhus/exit-hook#readme",
402 "_id": "[email protected]",
403 "_nodeVersion": "8.15.0",
404 "_npmVersion": "6.9.0",
405 "_npmUser": {
406 "name": "sindresorhus",
407 "email": "[email protected]"
408 },
409 "dist": {
410 "integrity": "sha512-YFH+2oGdldRH5GqGpnaiKbBxWHMmuXHmKTMtUC58kWSOrnTf95rKITVSFTTtas14DWvWpih429+ffAvFetPwNA==",
411 "shasum": "f5502f92179018e867f2d8ee4428392da7f3894e",
412 "tarball": "https://registry.npmjs.org/exit-hook/-/exit-hook-2.2.0.tgz",
413 "fileCount": 5,
414 "unpackedSize": 4570,
415 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctg6+CRA9TVsSAnZWagAAWJwP/26izlOlBKGmPmKccKp4\nJB17pRKgczcWGDEPqF9sCCRvhlaR5PgnsXy2rQynY/i8sVTFeHpeb0J2bqaI\nSsZtR5/QJ/ZDQFkLdggJGXhtbXe1Awx/aHgIe4RlPNXShmn489gm8fv2agGp\nq0P8AUdRmM7QIrjI/yW3HuNZMhmrjnecvffb3vW09ylgLOu3hBpUdikGFisr\n7Vo7hPEry2rDYlRCKoYDIN5Eb8++VK4cORAXej66Yc5Ewbl5VWeTfjTYBmpb\nQWeHv4rXDNqqHBXBUNuBzUJ7YuYRyUIoa866AcGvcNO4oC+ULZzgte8q4tnI\nRMKPkTwiwgNsOO+qnLIeUpbt4lo1XNaQSl8Gnj0rRGB7eO93eBlp6h+z2Oet\nB2i9pcNjrcLnq9UFc9VGRhP25oN/gnvRyMOn5plOCnm7HM0EuFbCTHf6n3Me\nupyQfIpJu0bZTzjGuS9eyeHBQtW3kKGLmofhiSQEPbqUUtr30mVg8DW7u0a/\nNG2+A6GoEWM0kLZE8T1H7/IS2E4ul3AgI0nSdURAeCUwMatu3wsaZjyXUtjE\n0Ntz8f7tf1vp1b1RQV4yRclUSDN8LU64AWQG9O9ZOPC3DDaIpx+a0Mz1KlP1\nTzGc5UgcHgUIslld/lXbmjxX50V8NyEHbWTgE8PaUVjFWaLPMtfzdOtF6eVQ\nthGm\r\n=e3Mc\r\n-----END PGP SIGNATURE-----\r\n"
416 },
417 "maintainers": [
418 {
419 "name": "sindresorhus",
420 "email": "[email protected]"
421 }
422 ],
423 "directories": {},
424 "_npmOperationalInternal": {
425 "host": "s3://npm-registry-packages",
426 "tmp": "tmp/exit-hook_2.2.0_1555435197535_0.6053662791757497"
427 },
428 "_hasShrinkwrap": false
429 }
430 },
431 "readme": "# exit-hook [![Build Status](https://travis-ci.org/sindresorhus/exit-hook.svg?branch=master)](https://travis-ci.org/sindresorhus/exit-hook)\n\n> Run some code when the process exits\n\nThe `process.on('exit')` event doesn't catch all the ways a process can exit.\n\nThis package is useful for cleaning up before exiting.\n\nCheck out [`async-exit-hook`](https://github.com/tapppi/async-exit-hook) if you need async support.\n\n\n## Install\n\n```\n$ npm install exit-hook\n```\n\n\n## Usage\n\n```js\nconst exitHook = require('exit-hook');\n\nexitHook(() => {\n\tconsole.log('Exiting');\n});\n\n// You can add multiple hooks, even across files\nexitHook(() => {\n\tconsole.log('Exiting 2');\n});\n\nthrow new Error('🦄');\n\n//=> 'Exiting'\n//=> 'Exiting 2'\n```\n\nRemoving an exit hook:\n\n```js\nconst exitHook = require('exit-hook');\n\nconst unsubscribe = exitHook(() => {});\n\nunsubscribe();\n```\n\n\n## API\n\n### exitHook(callback)\n\nReturns a function that removes the hook when called.\n\n#### callback\n\nType: `Function`\n\nThe callback to execute when the process exits.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
432 "maintainers": [
433 {
434 "name": "sindresorhus",
435 "email": "[email protected]"
436 }
437 ],
438 "time": {
439 "modified": "2019-04-16T17:20:01.724Z",
440 "created": "2014-08-31T11:19:13.581Z",
441 "1.0.0": "2014-08-31T11:19:13.581Z",
442 "1.1.0": "2014-08-31T23:31:07.279Z",
443 "1.1.1": "2014-09-01T13:14:50.788Z",
444 "2.0.0": "2018-03-24T16:04:42.431Z",
445 "2.1.0": "2019-04-09T08:29:07.717Z",
446 "2.2.0": "2019-04-16T17:19:57.671Z"
447 },
448 "homepage": "https://github.com/sindresorhus/exit-hook#readme",
449 "keywords": [
450 "exit",
451 "quit",
452 "process",
453 "hook",
454 "graceful",
455 "handler",
456 "shutdown",
457 "sigterm",
458 "sigint",
459 "terminate",
460 "kill",
461 "stop",
462 "event",
463 "signal"
464 ],
465 "repository": {
466 "type": "git",
467 "url": "git+https://github.com/sindresorhus/exit-hook.git"
468 },
469 "author": {
470 "name": "Sindre Sorhus",
471 "email": "[email protected]",
472 "url": "sindresorhus.com"
473 },
474 "bugs": {
475 "url": "https://github.com/sindresorhus/exit-hook/issues"
476 },
477 "license": "MIT",
478 "readmeFilename": "readme.md",
479 "users": {
480 "dylanf": true,
481 "j3kz": true,
482 "heartnett": true
483 }
484 }