Open dandv opened 5 years ago
I haven't worked with node for the past 1.5 years or so. Does anyone see reason to continue maintaining this module in light of the other available options?
After spending some time looking into the other modules, they aren't without issues:
exit hook
, albeit way more popular, hasn't added async support since it was requested in 2014, and it looks like that might be waiting on a core Node feature, and doesn't pass the exit code or the signal to the cleanup hook/handler.async-exit-hook
needs native promise support and to handle errors in the exitHookLooks like node-cleanup might be here to stay :)
@dandv it looks like the issue with exit-hooks had been solved.
Just to keep this updated, exit-hook
added async support but also went "pure ESM" which is very frustrating for those still stuck on CJS.
In case this module is no longer maintained (last commit was ~3 years ago), here are some more actively maintained alternatives: