{"_id":"unload","_rev":"2922526","name":"unload","description":"Execute code when the js-process exits. On all javascript-environments","dist-tags":{"latest":"2.4.1"},"maintainers":[{"name":"pubkey","email":""}],"time":{"modified":"2023-02-14T06:11:11.000Z","created":"2016-12-08T08:45:14.854Z","2.4.1":"2022-12-28T18:36:55.833Z","2.4.0":"2022-12-28T11:28:18.934Z","2.3.1":"2021-11-04T01:27:17.126Z","2.3.0":"2021-11-04T01:22:33.771Z","2.2.0":"2019-09-26T20:29:53.605Z","2.1.1":"2019-07-23T21:14:54.107Z","2.1.0":"2018-11-09T02:35:02.476Z","2.0.2":"2018-09-20T16:00:59.002Z","2.0.1":"2018-07-31T16:25:47.277Z","2.0.0":"2018-07-30T20:55:05.641Z","1.3.9":"2018-07-04T17:22:16.018Z","1.3.8":"2018-07-04T16:53:18.963Z","1.3.7":"2018-06-28T21:35:32.688Z","1.3.6":"2017-11-18T09:35:01.330Z","1.3.5":"2016-12-15T22:07:24.098Z","1.3.4":"2016-12-12T21:06:01.341Z","0.0.1":"2016-12-08T08:45:14.854Z"},"users":{},"author":{"name":"pubkey"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"versions":{"2.4.1":{"name":"unload","version":"2.4.1","description":"Execute code when the js-process exits. On all javascript-environments","author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 babel src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 babel test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"funding":"https://github.com/sponsors/pubkey","pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"@babel/cli":"7.20.7","@babel/core":"7.20.7","@babel/plugin-check-constants":"7.0.0-beta.38","@babel/plugin-proposal-object-rest-spread":"7.20.7","@babel/plugin-transform-member-expression-literals":"7.18.6","@babel/plugin-transform-property-literals":"7.18.6","@babel/plugin-transform-runtime":"7.19.6","@babel/polyfill":"7.12.1","@babel/preset-env":"7.20.2","@babel/types":"7.20.7","assert":"2.0.0","async-test-util":"2.0.0","browserify":"17.0.0","child_process":"1.0.2","child-process-promise":"2.2.1","concurrently":"4.1.2","cors":"2.8.5","cross-env":"7.0.3","eslint":"8.30.0","express":"4.17.3","http-server":"0.13.0","karma":"6.4.1","karma-browserify":"8.1.0","karma-chrome-launcher":"3.1.1","karma-mocha":"2.0.1","mocha":"10.2.0","node-cmd":"3.0.0","npm-run-all":"4.1.5","pre-commit":"1.2.2","request":"2.88.2","request-promise-native":"1.0.9","rimraf":"3.0.2","ts-node":"7.0.1","typescript":"3.9.10","uglify-js":"3.17.4","util":"0.12.5","watch":"1.0.2","watchify":"3.11.1"},"dependencies":{},"gitHead":"62d8fb9a4c9e138684826d8d92b0aa21aa0f2f08","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.4.1","_nodeVersion":"19.2.0","_npmVersion":"9.2.0","dist":{"shasum":"b0c5b7fb44e17fcbf50dcb8fb53929c59dd226a5","size":11088,"noattachment":false,"key":"/unload/-/unload-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.4.1.tgz"},"_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"directories":{},"maintainers":[{"name":"pubkey","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.4.1_1672252615678_0.9666583663443289"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-28T18:36:59.886Z","publish_time":1672252615833,"_cnpm_publish_time":1672252615833},"2.4.0":{"name":"unload","version":"2.4.0","description":"Execute code when the js-process exits. On all javascript-environments","author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 babel src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 babel test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"funding":"https://github.com/sponsors/pubkey","pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"@babel/cli":"7.20.7","@babel/core":"7.20.7","@babel/plugin-check-constants":"7.0.0-beta.38","@babel/plugin-proposal-object-rest-spread":"7.20.7","@babel/plugin-transform-member-expression-literals":"7.18.6","@babel/plugin-transform-property-literals":"7.18.6","@babel/plugin-transform-runtime":"7.19.6","@babel/polyfill":"7.12.1","@babel/preset-env":"7.20.2","@babel/types":"7.20.7","assert":"2.0.0","async-test-util":"2.0.0","browserify":"17.0.0","child_process":"1.0.2","child-process-promise":"2.2.1","concurrently":"4.1.2","cors":"2.8.5","cross-env":"7.0.3","eslint":"8.30.0","express":"4.17.3","http-server":"0.13.0","karma":"6.4.1","karma-browserify":"8.1.0","karma-chrome-launcher":"3.1.1","karma-mocha":"2.0.1","mocha":"10.2.0","node-cmd":"3.0.0","npm-run-all":"4.1.5","pre-commit":"1.2.2","request":"2.88.2","request-promise-native":"1.0.9","rimraf":"3.0.2","ts-node":"7.0.1","typescript":"3.9.10","uglify-js":"3.17.4","util":"0.12.5","watch":"1.0.2","watchify":"3.11.1"},"dependencies":{},"// browser":"this field contains files that will be empty objects in webpack-builds","browser":{"./src/node.js":false,"./dist/es/node.js":false,"./dist/lib/node.js":false},"gitHead":"422ff3605efb22751ebb3732b1e684050ce2cd22","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.4.0","_nodeVersion":"19.2.0","_npmVersion":"9.2.0","dist":{"shasum":"313acc2694d3c9ba56f5366ba21a2a2644f97024","size":10501,"noattachment":false,"key":"/unload/-/unload-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.4.0.tgz"},"_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"directories":{},"maintainers":[{"name":"pubkey","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.4.0_1672226898610_0.31403782184716245"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-28T11:30:28.659Z","publish_time":1672226898934,"_cnpm_publish_time":1672226898934},"2.3.1":{"name":"unload","version":"2.3.1","description":"Execute code when the js-process exits. On all javascript-environments","author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 babel src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 babel test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"@babel/cli":"7.6.2","@babel/core":"7.6.2","@babel/plugin-check-constants":"7.0.0-beta.38","@babel/plugin-proposal-object-rest-spread":"7.6.2","@babel/plugin-transform-member-expression-literals":"7.2.0","@babel/plugin-transform-property-literals":"7.2.0","@babel/plugin-transform-runtime":"7.6.2","@babel/polyfill":"7.6.0","@babel/preset-env":"7.6.2","@babel/types":"7.6.1","assert":"2.0.0","async-test-util":"1.7.3","browserify":"16.5.0","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"4.1.2","cors":"2.8.5","cross-env":"6.0.0","eslint":"6.4.0","express":"4.17.1","http-server":"0.11.1","karma":"4.3.0","karma-browserify":"6.1.0","karma-chrome-launcher":"3.1.0","karma-mocha":"1.3.0","mocha":"6.2.0","node":"12.11.0","node-cmd":"3.0.0","npm-run-all":"4.1.5","pre-commit":"1.2.2","request":"2.88.0","request-promise-native":"1.0.7","rimraf":"3.0.0","ts-node":"7.0.1","typescript":"3.6.3","uglify-js":"3.6.0","util":"0.12.1","watch":"1.0.2","watchify":"3.11.1"},"dependencies":{"@babel/runtime":"^7.6.2","detect-node":"2.1.0"},"// browser":"this field contains files that will be empty objects in webpack-builds","browser":{"./src/node.js":false,"./dist/es/node.js":false,"./dist/lib/node.js":false},"gitHead":"ea93656406d6f568db7fba8f070713b8b640a75e","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.3.1","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"shasum":"9d16862d372a5ce5cb630ad1309c2fd6e35dacfe","size":8718,"noattachment":false,"key":"/unload/-/unload-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.3.1.tgz"},"_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"directories":{},"maintainers":[{"name":"pubkey","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.3.1_1635989236986_0.7295896321005766"},"_hasShrinkwrap":false,"publish_time":1635989237126,"_cnpm_publish_time":1635989237126,"_cnpmcore_publish_time":"2021-12-18T21:03:16.158Z"},"2.3.0":{"name":"unload","version":"2.3.0","description":"Execute code when the js-process exits. On all javascript-environments","author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 babel src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 babel test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"@babel/cli":"7.6.2","@babel/core":"7.6.2","@babel/plugin-check-constants":"7.0.0-beta.38","@babel/plugin-proposal-object-rest-spread":"7.6.2","@babel/plugin-transform-member-expression-literals":"7.2.0","@babel/plugin-transform-property-literals":"7.2.0","@babel/plugin-transform-runtime":"7.6.2","@babel/polyfill":"7.6.0","@babel/preset-env":"7.6.2","@babel/types":"7.6.1","assert":"2.0.0","async-test-util":"1.7.3","browserify":"16.5.0","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"4.1.2","cors":"2.8.5","cross-env":"6.0.0","eslint":"6.4.0","express":"4.17.1","http-server":"0.11.1","karma":"4.3.0","karma-browserify":"6.1.0","karma-chrome-launcher":"3.1.0","karma-mocha":"1.3.0","mocha":"6.2.0","node":"12.11.0","node-cmd":"3.0.0","npm-run-all":"4.1.5","pre-commit":"1.2.2","request":"2.88.0","request-promise-native":"1.0.7","rimraf":"3.0.0","ts-node":"7.0.1","typescript":"3.6.3","uglify-js":"3.6.0","util":"0.12.1","watch":"1.0.2","watchify":"3.11.1"},"dependencies":{"@babel/runtime":"^7.6.2","detect-node":"^2.0.4"},"// browser":"this field contains files that will be empty objects in webpack-builds","browser":{"./src/node.js":false,"./dist/es/node.js":false,"./dist/lib/node.js":false},"gitHead":"42e09fa04b3692b2227351cd5b2e91c5ea0552a8","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.3.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"shasum":"696e333ae84c0c12a9e19847e8fba653a6486bf8","size":8719,"noattachment":false,"key":"/unload/-/unload-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.3.0.tgz"},"_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"directories":{},"maintainers":[{"name":"pubkey","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.3.0_1635988953605_0.3636320898886123"},"_hasShrinkwrap":false,"publish_time":1635988953771,"_cnpm_publish_time":1635988953771,"_cnpmcore_publish_time":"2021-12-18T21:03:16.537Z"},"2.2.0":{"name":"unload","version":"2.2.0","description":"Execute code when the js-process exits. On all javascript-environments","author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 babel src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 babel test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"@babel/cli":"7.6.2","@babel/core":"7.6.2","@babel/plugin-check-constants":"7.0.0-beta.38","@babel/plugin-proposal-object-rest-spread":"7.6.2","@babel/plugin-transform-member-expression-literals":"7.2.0","@babel/plugin-transform-property-literals":"7.2.0","@babel/plugin-transform-runtime":"7.6.2","@babel/polyfill":"7.6.0","@babel/preset-env":"7.6.2","@babel/types":"7.6.1","assert":"2.0.0","async-test-util":"1.7.3","browserify":"16.5.0","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"4.1.2","cors":"2.8.5","cross-env":"6.0.0","eslint":"6.4.0","express":"4.17.1","http-server":"0.11.1","karma":"4.3.0","karma-browserify":"6.1.0","karma-chrome-launcher":"3.1.0","karma-mocha":"1.3.0","mocha":"6.2.0","node":"12.11.0","node-cmd":"3.0.0","npm-run-all":"4.1.5","pre-commit":"1.2.2","request":"2.88.0","request-promise-native":"1.0.7","rimraf":"3.0.0","ts-node":"7.0.1","typescript":"3.6.3","uglify-js":"3.6.0","util":"0.12.1","watch":"1.0.2","watchify":"3.11.1"},"dependencies":{"@babel/runtime":"^7.6.2","detect-node":"^2.0.4"},"// browser":"this field contains files that will be empty objects in webpack-builds","browser":{"./src/node.js":false,"./dist/es/node.js":false,"./dist/lib/node.js":false},"gitHead":"db31c2772cda956c1a53fcc95cd40d7825077ec4","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.2.0","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"shasum":"ccc88fdcad345faa06a92039ec0f80b488880ef7","size":8173,"noattachment":false,"key":"/unload/-/unload-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.2.0.tgz"},"maintainers":[{"name":"pubkey","email":""}],"_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.2.0_1569529793355_0.6363555503020504"},"_hasShrinkwrap":false,"publish_time":1569529793605,"_cnpm_publish_time":1569529793605,"_cnpmcore_publish_time":"2021-12-18T21:03:16.760Z"},"2.1.1":{"name":"unload","version":"2.1.1","description":"Execute code when the js-process exits. On all javascript-environments","author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 babel src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 babel test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"@babel/cli":"7.5.5","@babel/core":"7.5.5","@babel/plugin-check-constants":"7.0.0-beta.38","@babel/plugin-proposal-object-rest-spread":"7.5.5","@babel/plugin-transform-member-expression-literals":"7.2.0","@babel/plugin-transform-property-literals":"7.2.0","@babel/plugin-transform-runtime":"7.5.5","@babel/polyfill":"7.4.4","@babel/preset-env":"7.5.5","@babel/types":"7.5.5","assert":"1.4.1","async-test-util":"1.7.3","browserify":"16.3.0","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"4.1.1","cors":"2.8.5","cross-env":"5.2.0","eslint":"5.8.0","express":"4.17.1","http-server":"0.11.1","karma":"3.1.1","karma-browserify":"5.3.0","karma-chrome-launcher":"2.2.0","karma-mocha":"1.3.0","mocha":"5.2.0","node":"11.0.0","node-cmd":"3.0.0","npm-run-all":"4.1.5","pre-commit":"1.2.2","request":"2.88.0","request-promise-native":"1.0.7","rimraf":"2.6.3","ts-node":"7.0.1","typescript":"3.5.3","uglify-js":"3.6.0","util":"0.11.1","watch":"1.0.2","watchify":"3.11.1"},"dependencies":{"@babel/runtime":"7.5.5","detect-node":"2.0.4"},"// browser":"this field contains files that will be empty objects in webpack-builds","browser":{"./src/node.js":false,"./dist/es/node.js":false,"./dist/lib/node.js":false},"gitHead":"d88f3c7e45451986c9e2d58e416d1a17ab5ad12c","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.1.1","_nodeVersion":"12.4.0","_npmVersion":"6.10.1","dist":{"shasum":"c85f88511afc1284678dc6001c8ed7d703aacd6f","size":8403,"noattachment":false,"key":"/unload/-/unload-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.1.1.tgz"},"maintainers":[{"name":"pubkey","email":""}],"_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.1.1_1563916493935_0.054334158741342176"},"_hasShrinkwrap":false,"publish_time":1563916494107,"_cnpm_publish_time":1563916494107,"_cnpmcore_publish_time":"2021-12-18T21:03:17.014Z"},"2.1.0":{"name":"unload","version":"2.1.0","description":"Execute code when the js-process exits. On all javascript-environments","author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 babel src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 babel test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"@babel/cli":"7.1.5","@babel/core":"7.1.5","@babel/plugin-check-constants":"7.0.0-beta.38","@babel/plugin-proposal-object-rest-spread":"7.0.0","@babel/plugin-transform-member-expression-literals":"7.0.0","@babel/plugin-transform-property-literals":"7.0.0","@babel/plugin-transform-runtime":"7.1.0","@babel/polyfill":"7.0.0","@babel/preset-env":"7.1.5","@babel/types":"7.1.5","assert":"1.4.1","async-test-util":"1.6.1","browserify":"16.2.3","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"4.0.1","cors":"2.8.5","cross-env":"5.2.0","eslint":"5.8.0","express":"4.16.4","http-server":"0.11.1","karma":"3.1.1","karma-browserify":"5.3.0","karma-chrome-launcher":"2.2.0","karma-mocha":"1.3.0","mocha":"5.2.0","node":"11.0.0","node-cmd":"3.0.0","npm-run-all":"4.1.3","pre-commit":"1.2.2","request":"2.88.0","request-promise-native":"1.0.5","rimraf":"2.6.2","ts-node":"7.0.1","typescript":"3.1.6","uglify-js":"3.4.9","util":"0.11.1","watch":"1.0.2","watchify":"3.11.0"},"dependencies":{"@babel/runtime":"7.1.5","detect-node":"2.0.4"},"// browser":"this field contains files that will be empty objects in webpack-builds","browser":{"./src/node.js":false,"./dist/es/node.js":false,"./dist/lib/node.js":false},"gitHead":"acc4c49919d447f71073c12c64911d18d3ad8f60","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"24e620607fdf1642de9533e4675682b28bdf8394","size":8306,"noattachment":false,"key":"/unload/-/unload-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.1.0.tgz"},"maintainers":[{"name":"pubkey","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.1.0_1541730902363_0.8806199614252277"},"_hasShrinkwrap":false,"publish_time":1541730902476,"_cnpm_publish_time":1541730902476,"_cnpmcore_publish_time":"2021-12-18T21:03:17.232Z"},"2.0.2":{"name":"unload","version":"2.0.2","description":"Execute code when the js-process exits. On all javascript-environments","author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 babel src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 babel test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"assert":"1.4.1","async-test-util":"1.6.1","@babel/cli":"7.1.0","@babel/core":"7.1.0","@babel/plugin-check-constants":"7.0.0-beta.38","@babel/plugin-proposal-object-rest-spread":"7.0.0","@babel/plugin-transform-member-expression-literals":"7.0.0","@babel/plugin-transform-property-literals":"7.0.0","@babel/plugin-transform-runtime":"7.1.0","@babel/polyfill":"7.0.0","@babel/preset-env":"7.1.0","@babel/types":"7.0.0","browserify":"16.2.2","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"3.6.1","cors":"2.8.4","cross-env":"5.2.0","eslint":"5.6.0","express":"4.16.3","http-server":"0.11.1","karma":"2.0.5","karma-browserify":"5.3.0","karma-chrome-launcher":"2.2.0","karma-mocha":"1.3.0","mocha":"5.2.0","node":"10.10.0","node-cmd":"3.0.0","npm-run-all":"4.1.3","pre-commit":"1.2.2","request":"2.88.0","request-promise-native":"1.0.5","rimraf":"2.6.2","ts-node":"7.0.1","typescript":"3.0.3","uglify-js":"3.4.9","util":"0.11.0","watch":"1.0.2","watchify":"3.11.0"},"dependencies":{"@babel/runtime":"7.0.0","detect-node":"2.0.4"},"// browser":"this field contains files that will be empty objects in webpack-builds","browser":{"./src/node.js":false,"./dist/es/node.js":false,"./dist/lib/node.js":false},"gitHead":"a4d4672dc888d2f55549fd3303f3b367b966c90f","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.9.0","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"ec3c8f9a92713d32e29522a125d8f2cb94a95eb3","size":8264,"noattachment":false,"key":"/unload/-/unload-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.0.2.tgz"},"maintainers":[{"name":"pubkey","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.0.2_1537459258870_0.3406926898607008"},"_hasShrinkwrap":false,"publish_time":1537459259002,"_cnpm_publish_time":1537459259002,"_cnpmcore_publish_time":"2021-12-18T21:03:17.448Z"},"2.0.1":{"name":"unload","version":"2.0.1","description":"Execute code when the js-process exits. On all javascript-environments","scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 node node_modules/babel-cli/bin/babel.js src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 node node_modules/babel-cli/bin/babel.js test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"assert":"1.4.1","async-test-util":"1.6.1","babel-cli":"6.26.0","babel-core":"6.26.3","babel-eslint":"8.2.6","babel-loader":"7.1.5","babel-plugin-transform-async-to-generator":"6.24.1","babel-plugin-transform-class-properties":"6.24.1","babel-plugin-transform-es2015-block-scoping":"6.26.0","babel-plugin-transform-es2015-constants":"6.1.4","babel-plugin-transform-es3-member-expression-literals":"6.22.0","babel-plugin-transform-es3-property-literals":"6.22.0","babel-plugin-transform-object-rest-spread":"6.26.0","babel-plugin-transform-regenerator":"6.26.0","babel-plugin-transform-runtime":"6.23.0","babel-polyfill":"6.26.0","babel-preset-es2015":"6.24.1","babel-preset-es2015-native-modules":"6.9.4","babel-preset-es2015-rollup":"3.0.0","babel-preset-es2016":"6.24.1","babel-preset-es2017":"6.24.1","babel-preset-latest":"6.24.1","browserify":"16.2.2","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"3.6.1","cors":"^2.8.4","cross-env":"5.2.0","eslint":"5.2.0","express":"4.16.3","http-server":"0.11.1","karma":"2.0.5","karma-browserify":"5.3.0","karma-chrome-launcher":"2.2.0","karma-mocha":"1.3.0","mocha":"5.2.0","node":"10.7.0","node-cmd":"3.0.0","npm-run-all":"4.1.3","pre-commit":"1.2.2","request":"2.87.0","request-promise-native":"1.0.5","rimraf":"2.6.2","ts-node":"7.0.0","typescript":"3.0.1","uglify-js":"3.4.6","util":"0.11.0","watch":"1.0.2","watchify":"3.11.0"},"dependencies":{"detect-node":"^2.0.3"},"// browser":"this field contains files that will be empty objects in webpack-builds","browser":{"./src/node.js":false,"./dist/es/node.js":false,"./dist/lib/node.js":false},"gitHead":"3b646234912ac9757f8354127f1cd9a9ed913f38","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.0.1","_npmVersion":"6.2.0","_nodeVersion":"10.5.0","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"39eb021a1ba99176900666d8bdb4660bcc01a6c4","size":19893,"noattachment":false,"key":"/unload/-/unload-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.0.1.tgz"},"maintainers":[{"name":"pubkey","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.0.1_1533054347065_0.932679586973604"},"_hasShrinkwrap":false,"publish_time":1533054347277,"_cnpm_publish_time":1533054347277,"_cnpmcore_publish_time":"2021-12-18T21:03:17.749Z"},"2.0.0":{"name":"unload","version":"2.0.0","description":"Execute code when the js-process exits. On all javascript-environments","scripts":{"lint":"eslint src test","preversion":"npm run lint && npm run test","build:es6":"rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es","build:es5":"cross-env NODE_ENV=es5 node node_modules/babel-cli/bin/babel.js src --out-dir dist/lib","build:test":"cross-env NODE_ENV=es5 node node_modules/babel-cli/bin/babel.js test --out-dir test_tmp","build:browser":"browserify dist/lib/index.browserify.js > dist/browserify.js","build:worker":"browserify test/helper/worker.js > test_tmp/worker.js","build":"npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker","clear":"rimraf -rf ./dist","pingserver":"node ./test/helper/ping-server.node.js","test:typings":"npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit","test:node":"npm run build && concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"","test:browser:server":"http-server . -p 8080 --cors --silent","test:browser":"npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"","test":"npm run test:node && npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"pre-commit":["lint"],"main":"./dist/lib/index.js","module":"./dist/es/index.js","types":"./src/index.d.ts","devDependencies":{"assert":"1.4.1","async-test-util":"1.6.1","babel-cli":"6.26.0","babel-core":"6.26.3","babel-eslint":"8.2.6","babel-loader":"7.1.5","babel-plugin-transform-async-to-generator":"6.24.1","babel-plugin-transform-class-properties":"6.24.1","babel-plugin-transform-es2015-block-scoping":"6.26.0","babel-plugin-transform-es2015-constants":"6.1.4","babel-plugin-transform-es3-member-expression-literals":"6.22.0","babel-plugin-transform-es3-property-literals":"6.22.0","babel-plugin-transform-object-rest-spread":"6.26.0","babel-plugin-transform-regenerator":"6.26.0","babel-plugin-transform-runtime":"6.23.0","babel-polyfill":"6.26.0","babel-preset-es2015":"6.24.1","babel-preset-es2015-native-modules":"6.9.4","babel-preset-es2015-rollup":"3.0.0","babel-preset-es2016":"6.24.1","babel-preset-es2017":"6.24.1","babel-preset-latest":"6.24.1","browserify":"16.2.2","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"3.6.1","cors":"^2.8.4","cross-env":"5.2.0","eslint":"5.2.0","express":"4.16.3","http-server":"0.11.1","karma":"2.0.5","karma-browserify":"5.3.0","karma-chrome-launcher":"2.2.0","karma-mocha":"1.3.0","mocha":"5.2.0","node":"10.7.0","node-cmd":"3.0.0","npm-run-all":"4.1.3","pre-commit":"1.2.2","request":"2.87.0","request-promise-native":"1.0.5","rimraf":"2.6.2","ts-node":"7.0.0","typescript":"3.0.1","uglify-js":"3.4.6","util":"0.11.0","watch":"1.0.2","watchify":"3.11.0"},"dependencies":{"detect-node":"^2.0.3"},"// browser":"this field contains files that will be empty objects in webpack-builds","browser":{"./src/node.js":false,"./dist/es/node.js":false,"./dist/lib/node.js":false},"gitHead":"66883aea22ca26fb134cd32075362901722c653c","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@2.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.5.0","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"41bb96696a5214997351778590c54fe9f8da6eb4","size":25980,"noattachment":false,"key":"/unload/-/unload-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-2.0.0.tgz"},"maintainers":[{"name":"pubkey","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_2.0.0_1532984105458_0.19414657231077537"},"_hasShrinkwrap":false,"publish_time":1532984105641,"_cnpm_publish_time":1532984105641,"_cnpmcore_publish_time":"2021-12-18T21:03:17.957Z"},"1.3.9":{"name":"unload","version":"1.3.9","description":"Execute code when the js-process exits. On all javascript-environments","scripts":{"lint":"eslint --ignore-path ./.eslintignore src test","preversion":"npm run lint && npm run test","build":"npm-run-all build:*","build:browserify":"browserify ./src/index.browserify.js > ./dist/unload.js","build:min":"uglifyjs --compress --mangle --output dist/unload.min.js -- ./dist/unload.js","pingserver":"node ./test/helper/ping-server.node.js","pretest":"npm run build","test":"concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test/nodejs.test.js\"","test:typings":"npm run build && mocha ./test/typings.test.js -b --timeout 12000 --exit"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"pre-commit":["test","lint"],"main":"src/index.js","types":"./src/index.d.ts","devDependencies":{"assert":"1.4.1","async-test-util":"1.6.1","browserify":"16.2.2","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"3.6.0","eslint":"5.0.1","express":"4.16.3","http-server":"0.11.1","karma":"2.0.4","karma-browserify":"5.3.0","karma-chrome-launcher":"2.2.0","karma-mocha":"1.3.0","mocha":"5.2.0","node":"10.5.0","node-cmd":"3.0.0","npm-run-all":"4.1.3","pre-commit":"1.2.2","request":"2.87.0","request-promise-native":"1.0.5","rimraf":"2.6.2","ts-node":"7.0.0","typescript":"2.9.2","uglify-js":"3.4.2","util":"0.11.0","watch":"1.0.2","watchify":"3.11.0"},"gitHead":"9a24f659207dcd1af68c0df758d894acd55001e3","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@1.3.9","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"fd3e945dac0d63159d6db605f59e72a3f0b2b496","size":11915,"noattachment":false,"key":"/unload/-/unload-1.3.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-1.3.9.tgz"},"maintainers":[{"name":"pubkey","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_1.3.9_1530724935802_0.3733642816538527"},"_hasShrinkwrap":false,"publish_time":1530724936018,"_cnpm_publish_time":1530724936018,"_cnpmcore_publish_time":"2021-12-18T21:03:18.167Z"},"1.3.8":{"name":"unload","version":"1.3.8","description":"Execute code when the js-process exits. On all javascript-environments","scripts":{"lint":"eslint --ignore-path ./.eslintignore src test","preversion":"npm run lint && npm run test","build":"npm-run-all build:*","build:browserify":"browserify ./src/index.browserify.js > ./dist/unload.js","build:min":"uglifyjs --compress --mangle --output dist/unload.min.js -- ./dist/unload.js","pingserver":"node ./test/helper/ping-server.node.js","pretest":"npm run build","test":"concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test/nodejs.test.js\"","test:typings":"npm run build && mocha ./test/typings.test.js -b --timeout 12000 --exit"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"pre-commit":["test","lint"],"main":"src/index.js","types":"./src/index.d.ts","devDependencies":{"assert":"1.4.1","async-test-util":"1.6.1","browserify":"16.2.2","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"3.6.0","eslint":"5.0.1","express":"4.16.3","http-server":"0.11.1","karma":"2.0.4","karma-browserify":"5.3.0","karma-chrome-launcher":"2.2.0","karma-mocha":"1.3.0","mocha":"5.2.0","node":"10.5.0","node-cmd":"3.0.0","npm-run-all":"4.1.3","pre-commit":"1.2.2","request":"2.87.0","request-promise-native":"1.0.5","rimraf":"2.6.2","ts-node":"7.0.0","typescript":"2.9.2","uglify-js":"3.4.2","util":"0.11.0","watch":"1.0.2","watchify":"3.11.0"},"gitHead":"97bd0cc60afc34be5bd016e3ae60299971ddcad8","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@1.3.8","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"b93438bdc0987bb4d16112c464232e680bc555bd","size":11819,"noattachment":false,"key":"/unload/-/unload-1.3.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-1.3.8.tgz"},"maintainers":[{"name":"pubkey","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_1.3.8_1530723198884_0.5264242355759929"},"_hasShrinkwrap":false,"publish_time":1530723198963,"_cnpm_publish_time":1530723198963,"_cnpmcore_publish_time":"2021-12-18T21:03:18.417Z"},"1.3.7":{"name":"unload","version":"1.3.7","description":"Execute code when the js-process exits. On all javascript-environments","scripts":{"lint":"eslint --ignore-path ./.eslintignore src test","preversion":"npm run lint && npm run test","build":"npm-run-all build:*","build:browserify":"browserify ./src/index.browserify.js > ./dist/unload.js","build:min":"uglifyjs --compress --mangle --output dist/unload.min.js -- ./dist/unload.js","pingserver":"node ./test/helper/ping-server.node.js","pretest":"npm run build","test":"concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test/nodejs.test.js\"","test:typings":"npm run build && mocha ./test/typings.test.js -b --timeout 12000 --exit"},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"pre-commit":["test","lint"],"main":"src/index.js","types":"./src/index.d.ts","devDependencies":{"assert":"1.4.1","async-test-util":"1.6.1","browserify":"16.2.2","child-process-promise":"2.2.1","child_process":"1.0.2","concurrently":"3.6.0","eslint":"5.0.1","express":"4.16.3","http-server":"0.11.1","karma":"2.0.4","karma-browserify":"5.3.0","karma-chrome-launcher":"2.2.0","karma-mocha":"1.3.0","mocha":"5.2.0","node":"10.5.0","node-cmd":"3.0.0","npm-run-all":"4.1.3","pre-commit":"1.2.2","request":"2.87.0","request-promise-native":"1.0.5","rimraf":"2.6.2","ts-node":"7.0.0","typescript":"2.9.2","uglify-js":"3.4.2","util":"0.11.0","watch":"1.0.2","watchify":"3.11.0"},"gitHead":"2752590245bf92b5c6834435aa0c1b10288dbea8","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@1.3.7","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"fccf0090bcb47daaf69218748ce5e1c56fbbad74","size":11833,"noattachment":false,"key":"/unload/-/unload-1.3.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-1.3.7.tgz"},"maintainers":[{"name":"pubkey","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload_1.3.7_1530221732619_0.21547778461923262"},"_hasShrinkwrap":false,"publish_time":1530221732688,"_cnpm_publish_time":1530221732688,"_cnpmcore_publish_time":"2021-12-18T21:03:18.691Z"},"1.3.6":{"name":"unload","version":"1.3.6","description":"Execute code when the js-process exits. On all javascript-environments","scripts":{"lint":"eslint --ignore-path ./.eslintignore src test","preversion":"npm run lint && npm run test","build":"npm-run-all build:*","build:browserify":"browserify ./src/index.browserify.js > ./dist/unload.js","build:min":"uglifyjs --compress --mangle --output dist/unload.min.js -- ./dist/unload.js","pingserver":"node ./test/helper/ping-server.node.js","pretest":"npm run build","test":"concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test/\""},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"pre-commit":["test","lint"],"main":"src/index.js","types":"./src/index.d.ts","devDependencies":{"assert":"1.4.1","browserify":"14.5.0","child_process":"1.0.2","concurrently":"3.5.0","eslint":"4.11.0","express":"4.16.2","http-server":"0.10.0","karma":"1.7.1","karma-browserify":"5.1.2","karma-chrome-launcher":"2.2.0","karma-mocha":"1.3.0","mocha":"4.0.1","node-cmd":"3.0.0","npm-run-all":"4.1.2","pre-commit":"1.2.2","request":"2.83.0","request-promise-native":"1.0.5","rimraf":"2.6.2","uglify-js":"3.1.9","util":"0.10.3","watch":"1.0.2","watchify":"3.9.0"},"gitHead":"595c6b1c796161faa7c94e82108db2e9e74aeb21","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@1.3.6","_npmVersion":"5.5.1","_nodeVersion":"9.0.0","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"b68685007d7ac0444729747901717c6275131f6d","size":11012,"noattachment":false,"key":"/unload/-/unload-1.3.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-1.3.6.tgz"},"maintainers":[{"name":"pubkey","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unload-1.3.6.tgz_1510997700747_0.944260063348338"},"directories":{},"publish_time":1510997701330,"_hasShrinkwrap":false,"_cnpm_publish_time":1510997701330,"_cnpmcore_publish_time":"2021-12-18T21:03:18.911Z"},"1.3.5":{"name":"unload","version":"1.3.5","description":"Execute code when the js-process exits. On all javascript-environments","scripts":{"lint":"eslint --ignore-path ./.eslintignore src test","preversion":"npm run lint && npm run test","build":"npm-run-all build:*","build:browserify":"browserify ./src/index.browserify.js > ./dist/unload.js","build:min":"uglifyjs --compress --mangle --output dist/unload.min.js -- ./dist/unload.js","pingserver":"node ./test/helper/ping-server.node.js","pretest":"npm run build","test":"concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test/\""},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"pre-commit":["test","lint"],"main":"src/index.js","types":"./src/index.d.ts","devDependencies":{"assert":"1.4.1","browserify":"13.1.1","child_process":"^1.0.2","concurrently":"3.1.0","eslint":"3.11.0","express":"4.14.0","http-server":"0.9.0","karma":"1.3.0","karma-browserify":"5.1.0","karma-chrome-launcher":"2.0.0","karma-mocha":"1.3.0","mocha":"3.2.0","node-cmd":"^1.1.1","npm-run-all":"^3.1.2","pre-commit":"1.1.3","request":"2.79.0","request-promise-native":"1.0.3","rimraf":"2.5.4","uglify-js":"2.7.4","util":"^0.10.3","watch":"1.0.1","watchify":"3.7.0"},"gitHead":"23184424e135ba969eed0d822295b4c70fb94af2","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@1.3.5","_shasum":"028b8a61dd5ef9b576a983c06e02776676523c4d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.2.1","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"028b8a61dd5ef9b576a983c06e02776676523c4d","size":10963,"noattachment":false,"key":"/unload/-/unload-1.3.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-1.3.5.tgz"},"maintainers":[{"name":"pubkey","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unload-1.3.5.tgz_1481839641946_0.7327317637391388"},"directories":{},"publish_time":1481839644098,"_hasShrinkwrap":false,"_cnpm_publish_time":1481839644098,"_cnpmcore_publish_time":"2021-12-18T21:03:19.127Z"},"1.3.4":{"name":"unload","version":"1.3.4","description":"Execute code when the js-process exits. On all javascript-environments","scripts":{"lint":"eslint --ignore-path ./.eslintignore src test","preversion":"npm run lint && npm run test","build":"npm-run-all build:*","build:browserify":"browserify ./src/index.browserify.js > ./dist/unload.js","build:min":"uglifyjs --compress --mangle --output dist/unload.min.js -- ./dist/unload.js","pingserver":"node ./test/helper/ping-server.node.js","pretest":"npm run build","test":"concurrently  --kill-others -s first \"npm run pingserver\" \"mocha -b test/\""},"repository":{"type":"git","url":"git+https://github.com/pubkey/unload.git"},"author":{"name":"pubkey"},"license":"Apache-2.0","keywords":["unload","exit","onunload","SIGINT","uncaughtException","beforeExit"],"pre-commit":["test","lint"],"main":"src/index.js","types":"./src/index.d.ts","devDependencies":{"assert":"1.4.1","browserify":"13.1.1","child_process":"^1.0.2","concurrently":"3.1.0","eslint":"3.11.0","express":"4.14.0","http-server":"0.9.0","karma":"1.3.0","karma-browserify":"5.1.0","karma-chrome-launcher":"2.0.0","karma-mocha":"1.3.0","mocha":"3.2.0","node-cmd":"^1.1.1","npm-run-all":"^3.1.2","pre-commit":"1.1.3","request":"2.79.0","request-promise-native":"1.0.3","rimraf":"2.5.4","uglify-js":"2.7.4","util":"^0.10.3","watch":"1.0.1","watchify":"3.7.0"},"gitHead":"50c721118ea5ab31883d15c6433ed3f3af6c78d0","bugs":{"url":"https://github.com/pubkey/unload/issues"},"homepage":"https://github.com/pubkey/unload#readme","_id":"unload@1.3.4","_shasum":"551da0ff77a3fea9b340634007692e38e3f6a82b","_from":".","_npmVersion":"4.0.2","_nodeVersion":"6.8.1","_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"551da0ff77a3fea9b340634007692e38e3f6a82b","size":10898,"noattachment":false,"key":"/unload/-/unload-1.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-1.3.4.tgz"},"maintainers":[{"name":"pubkey","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unload-1.3.4.tgz_1481576759556_0.672436693450436"},"directories":{},"publish_time":1481576761341,"_hasShrinkwrap":false,"_cnpm_publish_time":1481576761341,"_cnpmcore_publish_time":"2021-12-18T21:03:19.500Z"},"0.0.1":{"name":"unload","version":"0.0.1","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"","_id":"unload@0.0.1","_shasum":"4acde08572e87798390c866c419505c9853e92e3","_from":".","_npmVersion":"4.0.2","_nodeVersion":"6.9.1","_npmUser":{"name":"zefixx","email":"dieser.daniel@outlook.com"},"dist":{"shasum":"4acde08572e87798390c866c419505c9853e92e3","size":291,"noattachment":false,"key":"/unload/-/unload-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unload/download/unload-0.0.1.tgz"},"maintainers":[{"name":"pubkey","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unload-0.0.1.tgz_1481186713078_0.5205966054927558"},"directories":{},"publish_time":1481186714854,"_hasShrinkwrap":false,"_cnpm_publish_time":1481186714854,"_cnpmcore_publish_time":"2021-12-18T21:03:19.696Z"}},"readme":"# javascript: unload\n\nRun a piece of code whenever the javascript process stops/exits/quits. On **browsers, nodejs, electron, react-native, workers, iframes**. It also ensures that the exit-function is called only **once**.\n\nYou should use this module when your write a npm library where you dont know in which environments the users will run it.\n\n# What does `unload` handle?\n\nWhen nodejs:\n```js\nprocess.on('beforeExit');\nprocess.on('exit');\nprocess.on('SIGINT'); // catches ctrl+c event\nprocess.on('uncaughtException'); // catches uncaught exceptions\n```\n\nWhen browser:\n```js\nwindow.addEventListener('beforeunload'); // closing of normal browser-window\nwindow.addEventListener('unload'); // closed inside of iframe\n```\n\n# Usage\n\nInstallation:\n\n`npm install unload --save`\n\nAdd a function which runs when the process exits:\n\n```javascript\nvar unload = require('unload');\nunload.add(function(){\n    console.log('Ouch, I\\'m dying.');\n});\n```\n\nAdd and remove the function (It will no longer run when the process exits):\n\n```javascript\nvar unload = require('unload');\nvar ret = unload.add(function(){\n    console.log('Ouch, I\\'m dying.');\n});\n\nret.remove(); // removes the event-handler\n```\n\nRun all previously added functions:\n\n```javascript\nvar unload = require('unload');\nunload.add(function(){\n    console.log('Ouch, I\\'m dying.');\n});\n\nunload.runAll();\n```\n\nRemove all added functions (They will no longer run when the process exits):\n```javascript\nvar unload = require('unload');\nunload.add(function(){\n    console.log('Ouch, I\\'m dying.');\n});\n\nunload.removeAll();\n```\n\n\n# Sponsored by\n\n<p align=\"center\">\n    <a href=\"https://rxdb.info/?utm_source=github&utm_medium=repo&utm_campaign=github-unload\">\n        <img\n            src=\"https://github.com/pubkey/rxdb/raw/master/docs-src/files/logo/logo_text.svg\"\n            alt=\"Sponsored by RxDB\"\n            width=\"300\"\n         />\n         <br />\n         <br />\n         <span>The <b>JavaScript Database</b></span>\n    </a>\n</p>\n","_attachments":{},"homepage":"https://github.com/pubkey/unload#readme","bugs":{"url":"https://github.com/pubkey/unload/issues"},"license":"Apache-2.0"}