{"_id":"when-exit","_rev":"9-98e152add1d4ad0a6a5a31770073b768","name":"when-exit","dist-tags":{"latest":"2.1.5"},"versions":{"1.0.0":{"name":"when-exit","version":"1.0.0","keywords":["exit","catch","event","handle","hook","intercept","signal"],"author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"license":"MIT","_id":"when-exit@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/when-exit#readme","bugs":{"url":"https://github.com/fabiospampinato/when-exit/issues"},"dist":{"shasum":"664845bdd3591b9b657ce40d830e61599aa5c304","tarball":"https://registry.npmjs.org/when-exit/-/when-exit-1.0.0.tgz","fileCount":21,"integrity":"sha512-iptOY2Mp2YzxMEQ7RzdQFyz0Zgvx8PL8cOfdKPfSi+HhbviU6fWgZRWjHHY4Episgt0Pl45JlxDjGpxFRNjQRg==","signatures":[{"sig":"MEUCIQDOtIcTm8mD/jXZ603iVJKGZeUH5+IWmfFvPeTg93NxvwIgWgVlxvOP/A90ENUAClJQIJOu0Q0XfVxQN9B0ZEz2qdw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAt1QCRA9TVsSAnZWagAApMEP/2EzKiuYKM5wJZYG6Xe5\numO2wOpVCHpOtUIijj4Xn0vp7cZxwhENWxMmZUqpHaJyVfBiaSz4lGPVLFCf\nKb8dH0EGgN6y8m7kl2iZ3I5iXSfv1pLsPas0g/LfdxRudTHtIfGFoTXRADFd\nj1b3U0/eXsk182h3bqHLl+2Tdv3RyzxwTlhLsyvql7Ys6HmRYTDLN/lMzCT8\nL3AxIvyGReU1x6NOFDVYpc+dhlmHRDRmxXgVJEe/V3AfvhzqqYqnyUO2Jwqn\nlZfu569UW8K8C8LEATPgdhzs6dRMVLT59pVEUhMJV64Q7t9McplKSlVdY4Tu\nii1PTxw26/o3WkM96jkmLiZ4e6qZhghtPV5Xd8eJ8GSX/BNN96qc8YGuEHRd\ncn/3f88Z6wi4Y2aKHKABVeUXqrr1uCLs8s3g6/UYev3IGXB6VP7l+MBZ8uwz\nV+mhUF0OjxiQ4wYdRAbJvVU+KF2zPxk6k2RFBklrxYBNNZMysIin9y7zycYQ\ncGzooP+VOGgs6xzqYy6vu1nMtWWEVXla2Y0GhABE3vsjJwSX8lZaVe/Tgu4X\n+c1LFRZ4fnyuGmyoJoeKIMgni+IYdJAwMOorhALDUlXGdAm0Ivk8xApe0ZeD\njXeLC3sAIOVaP2Xi8goT3zc00nyph0mH2mXDaBC7fLHMP6uw4Ut9/P458ar8\n/BCz\r\n=r3DI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8bb773c0c50088e2e63ee9e6354f29857b334e22","scripts":{"test":"node test/index.js","clean":"rimraf dist","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","prepublishOnly":"npm run clean && npm run compile"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/when-exit.git","type":"git"},"_npmVersion":"8.1.0","description":"Execute a function right before the process is about to exit.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","typescript":"^4.5.5","@types/node":"^17.0.16","typescript-transform-export-interop":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/when-exit_1.0.0_1644354896074_0.9620101716198008","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"when-exit","version":"2.0.0","keywords":["exit","catch","event","handle","hook","intercept","signal"],"_id":"when-exit@2.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/when-exit#readme","bugs":{"url":"https://github.com/fabiospampinato/when-exit/issues"},"dist":{"shasum":"e5a4f30dbb8a6a8382490cd0718807357e7b98fe","tarball":"https://registry.npmjs.org/when-exit/-/when-exit-2.0.0.tgz","fileCount":21,"integrity":"sha512-17lB0PWIgOuil9dgC/vdQY0aq5lwT0umemaIsOTNDBsc1TwclvocXOvkwenwUXEawN5mW3F64X52xPkTFnihDw==","signatures":[{"sig":"MEYCIQCt0fUbyG31mj3lnsfVsdrXBSTFw+4seuZNqS3kSZwPpQIhAN78wWwAHpQTjUZL/yo8vO+op+MnUc4fEKK1pEzZ8tqP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTNqtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpopQ/+KmNaPbGMfUUx2FS73v+AOb1XYohkZA+Au02vfKPgFjPeB/r9\r\nkBc+DoeQtr9u8iG4U3wX1unOpyQbmV8kwiEei8mZ8yLfL4Ahmbkky5Kk0Mwq\r\nlVUrQfytCr6HFY30sK1U0Dm8M/go2Kvu9460lQsg/xxw4CMVdiu7BVD+L6bI\r\nRuJTYztuH9LSBjRA48EIKpyhOAYbZwp3d68ppGLPY3kSysLBvCmW1rtHY4rJ\r\n+DSUeUNz1fQc6/BeCm66nn7rSz3z9YLqKCSYkaLXTDl32iRVFwSUayQFGfmS\r\nYxz8Ls7Qe3jh4ISXjAZPN5aUGu6cskODO6cGYL1tODyD6HrXbCTgb1kNkRR8\r\nwf/4BWxm1KDaKiHLOy+zsEM6vfrRrFE6zeXRY5mKlus/uTgVDCCoj8cMeMLQ\r\njgJ08jk6IMczBK8ObNwbI+1K45VQ61WsTQTFw0T37pHy0aocw2W7HXbe5ti/\r\n6P3/o+gNqUS2CU6ccC4zmzJaSjz/j3ucBYnqt/Fm0e2XW4Z/Zyo9mYW+uoo7\r\ntht9+Mjk36tRao3gH9OC56WkOjpmASPMbtu2cWTtNV55pBU1oJV/LTGyyMZv\r\n4ZDVDg7FMLynvJtd8WQn9P07sW0LZvCnsnMlkbUZ1C0OdsPVQwaKE22NiDoi\r\nISJc+fRP07w6I6jC3/M4gyLMwfHNx33VAc4=\r\n=opvZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"29d133b974afee7ae258bc576aee5f043411427d","scripts":{"test":"node test/index.js","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/when-exit.git","type":"git"},"_npmVersion":"8.1.0","description":"Execute a function right before the process is about to exit.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"tsex":"^1.0.4","typescript":"^4.6.3","@types/node":"^17.0.23"},"_npmOperationalInternal":{"tmp":"tmp/when-exit_2.0.0_1649203885617_0.9402367947039494","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"when-exit","version":"2.1.0","keywords":["exit","catch","event","handle","hook","intercept","signal"],"_id":"when-exit@2.1.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/when-exit#readme","bugs":{"url":"https://github.com/fabiospampinato/when-exit/issues"},"dist":{"shasum":"0f7b5d7d5f00ea2c4b131b546c444cca2c4ffba7","tarball":"https://registry.npmjs.org/when-exit/-/when-exit-2.1.0.tgz","fileCount":28,"integrity":"sha512-H85ulNwUBU1e6PGxkWUDgxnbohSXD++ah6Xw1VHAN7CtypcbZaC4aYjQ+C2PMVaDkURDuOinNAT+Lnz3utWXxQ==","signatures":[{"sig":"MEQCIESy9Zb5olQJILBPYoPbHG9Fkj5rSfy640J6/DMJF3IhAiAUU5okBWZNaLlWE6cENYiLlYB+9jztSy7Bq1WcBbEvwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10925,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7CxBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7EBAAh8ZT3Hxzmb7YEQJp/cYx1Ceg5aAcmUqZzYhzZpbifyskQa7t\r\nrHa4ZpM+OTF/yiWUKhwUvoEFwr1nNixkIdwMxZPYVA2KAn3SwYUJU4QvseOW\r\ntEofva89yJ9u44x4/iXfqSt9JjEuivaFq/8EAxgMVGUp7HvQNk2gOb6IEKvS\r\nL4wdPGoPaBpDg8Lpcc+CFl7zWzTM2MNN9YszZCN6PTVCEXy5URXkhHmMaGeP\r\nc7V5XN7smWipoY0X69bJyPMQKrVgrwMG9dpjgZK29VkmHUwxcumLTQllGFfG\r\n2h7sKWUYK+GkEZulF4z8131IBMshrnceslGFAT+0x3/m1c4iYX304IRBkegq\r\nOyTo5yFsBpSrcbEC8cpP2F8ZtWaqkiLOs2KJOJ173UP+IepFD1q8QQa+p0PM\r\nIFbb1Tk+gIJ21EFRw1/i5lxX5mQDm/tMfZwTrnw9eMozyyEqOuNqlJdXiQPc\r\nSHOIPKAnR8f9LeBPscfFnxh1/AriTq4e4ujTYN9iebR90qw+CtWIOj44bcpC\r\nQ0BTpoPMxalRcbKufSS5pMQndzPc8VLE+AiiKGaE+zBdEp6VFpw45zh0i/mJ\r\n2HgIHMFrUOY4hEvPXlK3suHde4RI8VqgOxMaLYFjJh8JEkn0pjh5IbI2Zl2x\r\ny8SE2edahW5NxcRlBhQxvVpiSklDwVa2ASk=\r\n=CVqC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/node/index.js","type":"module","types":"./dist/node/index.d.ts","exports":{"node":"./dist/node/index.js","default":"./dist/browser/index.js"},"gitHead":"756d4544da093545efbd9b25c4771202f6e73be7","scripts":{"test":"node test/index.js","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/when-exit.git","type":"git"},"_npmVersion":"8.19.2","description":"Execute a function right before the process, or the browser's tab, is about to exit.","directories":{},"_nodeVersion":"18.12.0","_hasShrinkwrap":false,"devDependencies":{"tsex":"^2.1.0","typescript":"^4.9.5","@types/node":"^18.13.0"},"_npmOperationalInternal":{"tmp":"tmp/when-exit_2.1.0_1676422209230_0.7089505602227204","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"when-exit","version":"2.1.1","keywords":["exit","catch","event","handle","hook","intercept","signal"],"_id":"when-exit@2.1.1","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/when-exit#readme","bugs":{"url":"https://github.com/fabiospampinato/when-exit/issues"},"dist":{"shasum":"08df6c5dafaf3d233ad153990d8a24d941bbe801","tarball":"https://registry.npmjs.org/when-exit/-/when-exit-2.1.1.tgz","fileCount":28,"integrity":"sha512-XLipGldz/UcleuGaoQjbYuWwD+ICRnzIjlldtwTaTWr7aZz8yQW49rXk6MHQnh+KxOiWiJpM1vIyaxprOnlW4g==","signatures":[{"sig":"MEUCIBJsrReI7/+7rsImXjTcLla2NX/Yr4JmKvQmX64lOxQyAiEAvdz04K7g4ZXO7YkwazU8OHsSKkB/lz4jtMZ5uUk1kb8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10949},"main":"dist/node/index.js","type":"module","types":"./dist/node/index.d.ts","exports":{"node":"./dist/node/index.js","default":"./dist/browser/index.js"},"gitHead":"e798252aaea6e0835cdff35137d00df1e5d6972b","scripts":{"test":"node test/index.js","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/when-exit.git","type":"git"},"_npmVersion":"8.19.2","description":"Execute a function right before the process, or the browser's tab, is about to exit.","directories":{},"_nodeVersion":"18.12.0","_hasShrinkwrap":false,"devDependencies":{"tsex":"^3.0.0","typescript":"^5.1.6","@types/node":"^18.13.0"},"_npmOperationalInternal":{"tmp":"tmp/when-exit_2.1.1_1691084259825_0.6819902852711528","host":"s3://npm-registry-packages"}},"2.1.2":{"name":"when-exit","version":"2.1.2","keywords":["exit","catch","event","handle","hook","intercept","signal"],"_id":"when-exit@2.1.2","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/when-exit#readme","bugs":{"url":"https://github.com/fabiospampinato/when-exit/issues"},"dist":{"shasum":"888d8af6770e2b772fa3677aba1aff1a54320511","tarball":"https://registry.npmjs.org/when-exit/-/when-exit-2.1.2.tgz","fileCount":28,"integrity":"sha512-u9J+toaf3CCxCAzM/484qNAxQE75rFdVgiFEEV8Xps2gzYhf0tx73s1WXDQhkwV17E3MxRMz40m7Ekd2/121Lg==","signatures":[{"sig":"MEQCIQCC/NhzVNBCOTSVv9KkSKsaRKZRS0BTBfkua4v0iw1TZwIfPyswL7z1XRDG23x5zsaV30HnxiLBu2NZ9IfW1cB/hw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11607},"main":"dist/node/index.js","type":"module","types":"./dist/node/index.d.ts","exports":{"node":"./dist/node/index.js","default":"./dist/browser/index.js"},"gitHead":"00fc9cec8b8f61a652b944bcb707d59851a7085b","scripts":{"test":"node test/index.js","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/when-exit.git","type":"git"},"_npmVersion":"10.2.3","description":"Execute a function right before the process, or the browser's tab, is about to exit.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"tsex":"^3.0.0","typescript":"^5.1.6","@types/node":"^18.13.0"},"_npmOperationalInternal":{"tmp":"tmp/when-exit_2.1.2_1702165848973_0.28250636189738976","host":"s3://npm-registry-packages"}},"2.1.3":{"name":"when-exit","version":"2.1.3","keywords":["exit","catch","event","handle","hook","intercept","signal"],"_id":"when-exit@2.1.3","homepage":"https://github.com/fabiospampinato/when-exit#readme","bugs":{"url":"https://github.com/fabiospampinato/when-exit/issues"},"dist":{"shasum":"5831cdbed8ad4984645da98c4a00d4ee3a3757e7","tarball":"https://registry.npmjs.org/when-exit/-/when-exit-2.1.3.tgz","fileCount":28,"integrity":"sha512-uVieSTccFIr/SFQdFWN/fFaQYmV37OKtuaGphMAzi4DmmUlrvRBJW5WSLkHyjNQY/ePJMz3LoiX9R3yy1Su6Hw==","signatures":[{"sig":"MEUCIQCH81QYM/0QTCK0MCs83L8bK0AAU4cebYUjniX7IGKDHAIgeuHqbeZZbvcfZguh8u+Hx3kQHJ9ROyMVN7WYRscR45Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11845},"main":"dist/node/index.js","type":"module","types":"./dist/node/index.d.ts","exports":{"node":"./dist/node/index.js","default":"./dist/browser/index.js"},"gitHead":"bbe129f6fbb84190e79a9bd2fc246b40bfa17da6","scripts":{"test":"node test/index.js","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/when-exit.git","type":"git"},"_npmVersion":"10.2.3","description":"Execute a function right before the process, or the browser's tab, is about to exit.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"tsex":"^3.0.0","typescript":"^5.1.6","@types/node":"^18.13.0"},"_npmOperationalInternal":{"tmp":"tmp/when-exit_2.1.3_1719755355632_0.04754522859264143","host":"s3://npm-registry-packages"}},"2.1.4":{"name":"when-exit","version":"2.1.4","keywords":["exit","catch","event","handle","hook","intercept","signal"],"license":"MIT","_id":"when-exit@2.1.4","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/when-exit#readme","bugs":{"url":"https://github.com/fabiospampinato/when-exit/issues"},"dist":{"shasum":"e2a0e998f7ad67eb0d2ce37e9794386663cc96f7","tarball":"https://registry.npmjs.org/when-exit/-/when-exit-2.1.4.tgz","fileCount":17,"integrity":"sha512-4rnvd3A1t16PWzrBUcSDZqcAmsUIy4minDXT/CZ8F2mVDgd65i4Aalimgz1aQkRGU0iH5eT5+6Rx2TK8o443Pg==","signatures":[{"sig":"MEUCIQCFfjR//KU/jcs1bD2tncYVg4jYX6Ve++WnkvkHVp2YRwIgXeGSBpkP8reNKVIQwktMSGvOjfQ9LCkD9XMEvt/KtzY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6902},"main":"dist/node/index.js","type":"module","types":"./dist/node/index.d.ts","exports":{"node":"./dist/node/index.js","default":"./dist/browser/index.js"},"gitHead":"04c499274eccb4c18b2f6399b66731401c10060b","scripts":{"test":"node test/index.js","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/when-exit.git","type":"git"},"_npmVersion":"10.2.3","description":"Execute a function right before the process, or the browser's tab, is about to exit.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"tsex":"^4.0.2","typescript":"^5.7.3","@types/node":"^18.19.70"},"_npmOperationalInternal":{"tmp":"tmp/when-exit_2.1.4_1736706921582_0.5617467081559211","host":"s3://npm-registry-packages-npm-production"}},"2.1.5":{"name":"when-exit","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/when-exit.git"},"description":"Execute a function right before the process, or the browser's tab, is about to exit.","license":"MIT","version":"2.1.5","type":"module","main":"dist/node/index.js","types":"./dist/node/index.d.ts","exports":{"node":"./dist/node/index.js","default":"./dist/browser/index.js"},"scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"node test/index.js","prepublishOnly":"npm run clean && npm run compile && npm run test"},"keywords":["exit","catch","event","handle","hook","intercept","signal"],"devDependencies":{"@types/node":"^18.19.70","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"when-exit@2.1.5","gitHead":"b6f255cd6078fcca1593e7b6f7d211e2ab25a1b4","bugs":{"url":"https://github.com/fabiospampinato/when-exit/issues"},"homepage":"https://github.com/fabiospampinato/when-exit#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-VGkKJ564kzt6Ms1dbgPP/yuIoQCrsFAnRbptpC5wOEsDaNsbCB2bnfnaA8i/vRs5tjUSEOtIuvl9/MyVsvQZCg==","shasum":"53fa4ffa2ba4c792213fb6617eb7d08f0dcb1a9f","tarball":"https://registry.npmjs.org/when-exit/-/when-exit-2.1.5.tgz","fileCount":17,"unpackedSize":6893,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDWwyFFk/P6Pivwdbz6+w0zON4U3c2BT2zKf/9BKKnz7AIhAMz/gQfS4OWRCDC2YR6i3ya/URPWmP6bL85bkPcfLm+t"}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/when-exit_2.1.5_1761691956889_0.02036148488677303"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-08T21:14:56.072Z","modified":"2025-10-28T22:52:37.240Z","1.0.0":"2022-02-08T21:14:56.204Z","2.0.0":"2022-04-06T00:11:25.767Z","2.1.0":"2023-02-15T00:50:09.381Z","2.1.1":"2023-08-03T17:37:40.023Z","2.1.2":"2023-12-09T23:50:49.205Z","2.1.3":"2024-06-30T13:49:15.795Z","2.1.4":"2025-01-12T18:35:21.780Z","2.1.5":"2025-10-28T22:52:37.076Z"},"bugs":{"url":"https://github.com/fabiospampinato/when-exit/issues"},"license":"MIT","homepage":"https://github.com/fabiospampinato/when-exit#readme","keywords":["exit","catch","event","handle","hook","intercept","signal"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/when-exit.git"},"description":"Execute a function right before the process, or the browser's tab, is about to exit.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# WhenExit\n\nExecute a function right before the process, or the browser's tab, is about to exit.\n\n## Install\n\n```sh\nnpm install when-exit\n```\n\n## Usage\n\n```ts\nimport whenExit from 'when-exit';\n\n// Registering multiple callbacks\n\nonExit ( () => {\n  console.log ( 'Callback 1' );\n});\n\nonExit ( () => {\n  console.log ( 'Callback 2' );\n});\n\n// Registering and disposing a callback\n\nconst disposer = onExit ( () => {\n  console.log ( 'Callback 3' );\n});\n\ndisposer ();\n\n// Triggering the process to exit\n\nprocess.exit (); // Callback 1 and 2 are called before exiting\n```\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md"}