Run some code when the process exits
☆302Feb 4, 2026Updated last month
Alternatives and similar repositories for exit-hook
Users that are interested in exit-hook are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Node's default require extensions as a separate module☆11Oct 27, 2022Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Detect whether the terminal supports Unicode☆87Sep 9, 2024Updated last year
- Check if a path is the current working directory☆22May 10, 2025Updated 10 months ago
- DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Ponyfill for Error#captureStackTrace☆63Oct 10, 2022Updated 3 years ago
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 6 months ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last month
- Modify the values of an object☆28Sep 10, 2021Updated 4 years ago
- NordVPN Special Discount Offer • AdSave on top-rated NordVPN 1 or 2-year plans with secure browsing, privacy protection, and support for for all major platforms.
- Ensures a value is a valid error by making it one if not☆89Sep 15, 2025Updated 6 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last month
- Get the directory of globally installed packages and binaries☆77Feb 2, 2026Updated last month
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Get the arguments of a function, arrow function, generator function, async function☆54Oct 30, 2023Updated 2 years ago
- Toggle the CLI cursor☆112Jul 26, 2024Updated last year
- Exit the process when the `esc` key is pressed☆58Dec 4, 2023Updated 2 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Simple, predictable pricing with DigitalOcean hosting • AdAlways know what you'll pay with monthly caps and flat pricing. Enterprise-grade infrastructure trusted by 600k+ customers.
- Get the first path that exists on disk of multiple paths☆63Sep 15, 2025Updated 6 months ago
- Get the real path of the system temp directory☆85Sep 26, 2022Updated 3 years ago
- Truncate a string to a specific width in the terminal☆88Mar 1, 2026Updated 3 weeks ago
- Import a module like with `require()` but from a given path☆85Jul 8, 2022Updated 3 years ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 4 months ago
- Easily handle defaults for your options☆76Oct 18, 2023Updated 2 years ago
- Map of nouns to their irregular plural form☆91Nov 2, 2025Updated 4 months ago
- Ensure a function is only called once☆165Feb 2, 2026Updated last month
- Get the name and version of a macOS release from the Darwin version☆67Jun 11, 2025Updated 9 months ago
- Virtual machines for every use case on DigitalOcean • AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Feb 19, 2023Updated 3 years ago
- Clean up error stack traces☆347Nov 4, 2025Updated 4 months ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated last year
- Sort the keys of an object☆109Aug 24, 2025Updated 7 months ago
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆107Jul 8, 2022Updated 3 years ago
- Strip a path from a path☆18Aug 18, 2021Updated 4 years ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 4 years ago