@alwatr/exit-hook
v5.5.27
Published
A utility for registering exit handlers in Node.js.
Downloads
516
Maintainers
Readme
Exit Hook
A utility for registering exit handlers in Node.js.
Installation
yarn add @alwatr/exit-hookUsage
import {exitHook} from '@alwatr/exit-hook';
const saveAllData = () => {
// save all data
};
exitHook(saveAllData);Sponsors
The following companies, organizations, and individuals support Nanolib ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
Contributing
Contributions are welcome! Please read our contribution guidelines before submitting a pull request.
