sindresorhus

exit-hook

Run some code when the process exits

by sindresorhus

JavaScript

JavaScript97.4%
TypeScript2.6%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
dec0dOS

Hello! Thanks for your awesome projects. They provide really good workarounds for current JS ecosystem strange problems. I've faced an issue with flushing the stdout/stderr buffers before the exit. Seems to be that is the root problem. Some hacks like in https://github.com/cowboy/node-exit/blob/master/lib/exit.js is still required in modern node (v20.4.0). My proposal is to integrate the solution in exit-hook, as it's not possible to use these modules together.

dec0dOS · 8mo ago
sergeyzwezdin

We would like to write all debug messages from to our own Kibana with some field predefined. Currently, uses to write any logs. Could you please introduce ability to intercept log messages or override the logger at all?

sergeyzwezdin · 8mo ago
theoephraim

After updating to 5.0.0, it seems exit codes are not being passed through anymore. Downgrading to v4 fixed the issue for me. https://stackblitz.com/edit/stackblitz-starters-xwbihfsk

theoephraim · 11mo ago
Structured data for AI agents

Repository: sindresorhus/exit-hook. Description: Run some code when the process exits Stars: 301, Forks: 42. Primary language: JavaScript. Languages: JavaScript (97.4%), TypeScript (2.6%). License: MIT. Latest release: v5.1.0 (8mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, theCodeDrift, Tapppi, brandonocasey, dflupu, BendingBender, Julusian, rpnzl, Richienb, SCG82.