Run some code when the process exits
☆302Feb 4, 2026Updated 3 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
- 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☆86Sep 9, 2024Updated last year
- Check if a path is the current working directory☆22May 10, 2025Updated 11 months ago
- Proton VPN Special Offer - Get 70% off • AdSpecial partner offer. Trusted by over 100 million users worldwide. Tested, Approved and Recommended by Experts.
- Check if a path is in the current working directory☆23May 3, 2021Updated 5 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 5 years ago
- Ponyfill for Error#captureStackTrace☆62Oct 10, 2022Updated 3 years ago
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 7 months ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated 3 months ago
- Modify the values of an object☆28Sep 10, 2021Updated 4 years ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Ensures a value is a valid error by making it one if not☆92Sep 15, 2025Updated 7 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 3 months ago
- Get the directory of globally installed packages and binaries☆77Feb 2, 2026Updated 3 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 5 years ago
- Get the arguments of a function, arrow function, generator function, async function☆54Oct 30, 2023Updated 2 years ago
- Toggle the CLI cursor☆114Jul 26, 2024Updated last year
- Exit the process when the `esc` key is pressed☆59Dec 4, 2023Updated 2 years ago
- Get the version of a binary in semver format☆43Apr 3, 2024Updated 2 years ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Get the first path that exists on disk of multiple paths☆64Sep 15, 2025Updated 7 months ago
- 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 3 years ago
- Truncate a string to a specific width in the terminal☆91Apr 4, 2026Updated last month
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 5 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 6 months ago
- Ensure a function is only called once☆166Feb 2, 2026Updated 3 months ago
- Get the name and version of a macOS release from the Darwin version☆66Jun 11, 2025Updated 10 months ago
- AI Agents on 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.
- 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☆345Nov 4, 2025Updated 6 months ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated 2 years ago
- Sort the keys of an object☆109Aug 24, 2025Updated 8 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 5 years ago