Run some code when the process exits
☆302Feb 4, 2026Updated 5 months ago
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
- Truncate a semver version: 1.2.3 → 1.2.0☆17Jul 9, 2022Updated 4 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 2 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated last year
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Detect whether the terminal supports Unicode☆86Sep 9, 2024Updated last year
- Modify the filename in a path☆17Jul 9, 2022Updated 4 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 5 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 4 years ago
- Ponyfill for Error#captureStackTrace☆62Oct 10, 2022Updated 3 years ago
- Modify the values of an object☆28Sep 10, 2021Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated 5 months ago
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 10 months ago
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Ensures a value is a valid error by making it one if not☆95Sep 15, 2025Updated 10 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 5 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 5 years ago
- Get the directory of globally installed packages and binaries☆77Feb 2, 2026Updated 5 months ago
- Toggle the CLI cursor☆114Jul 26, 2024Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆64Sep 15, 2025Updated 10 months ago
- Get the version of a binary in semver format☆43Apr 3, 2024Updated 2 years ago
- Exit the process when the `esc` key is pressed☆59Dec 4, 2023Updated 2 years ago
- GPUs on demand by Runpod - Special Offer Available • AdRun AI, ML, and HPC workloads on powerful cloud GPUs—without limits or wasted spend. Deploy GPUs in under a minute and pay by the second.
- Get the real path of the system temp directory☆85Sep 26, 2022Updated 3 years ago
- Import a module like with `require()` but from a given path☆85Jul 8, 2022Updated 4 years ago
- Truncate a string to a specific width in the terminal☆97Jul 9, 2026Updated 2 weeks ago
- Easily handle defaults for your options☆77Updated this week
- Get the name and version of a macOS release from the Darwin version☆68Jun 8, 2026Updated last month
- Ensure a function is only called once☆167Feb 2, 2026Updated 5 months ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 8 months ago
- Map of nouns to their irregular plural form☆91Nov 2, 2025Updated 8 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Feb 19, 2023Updated 3 years ago
- Managed Kubernetes at scale on DigitalOcean • AdDigitalOcean Kubernetes includes the control plane, bandwidth allowance, container registry, automatic updates, and more for free.
- Clean up error stack traces☆346Nov 4, 2025Updated 8 months ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 10 months ago
- Get the hash of a string☆68Feb 5, 2022Updated 4 years ago
- Sort the keys of an object☆109Jun 29, 2026Updated 3 weeks ago
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆107Jul 8, 2022Updated 4 years ago
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 5 years ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 5 years ago