node-cleanup
node-cleanup copied to clipboard
installs custom cleanup handlers that run on exiting node
async/await?
Is it possible to use an await inside a cleanup callback?
I dont want the process.exit functionality included in the uncaughtException handler. Is there a way to disable this? I realize i can catch it in the cleanup handler but there...
In case this module is no longer maintained (last commit was ~3 years ago), here are some more actively maintained alternatives: * [exit-hook](https://www.npmjs.com/package/exit-hook) * [async-exit-hook](https://www.npmjs.com/package/async-exit-hook) - with [async support](https://github.com/jtlapp/node-cleanup/issues/15), which...
If I run my script (on Ubuntu) as `node script.js 2>&1 | tee script.log` and press ^C, nothing is printed or logged to the file. Without the piping, I do...
Would that work, or would they stomp on each other?
A small observation: if cleanup handers were installed using `process.once` instead of `process.on` it would be unnecessary to call `uninstall` before calling `process.kill`. (Unfortunately `uninstall` is part of the public...
Thank you for publishing this module! I've learned about it from [this SO question](https://stackoverflow.com/questions/14031763/doing-a-cleanup-action-just-before-node-js-exits). Given that @jprichardson's [node-death](https://github.com/jprichardson/node-death) precedes it, I'd be curious to know how this module differs from...
Killing the node process with ctrl-c triggers the cleanup fine (Windows 7 by the way). But when I kill it via Task Manager, or it gets killed by rebooting the...
Tap relies on coveralls which relies on request which is using an outdated dep, once it's updated this repo should update it's Tap version. Ref: https://github.com/tapjs/node-tap/issues/337