A utility for registering exit handlers in Node.js.
npm install @alwatr/exit-hookA utility for registering exit handlers in Node.js.
``bash`
yarn add @alwatr/exit-hook
`typescript
import {exitHook} from '@alwatr/exit-hook';
const saveAllData = () => {
// save all data
};
exitHook(saveAllData);
``
The following companies, organizations, and individuals support Nanolib ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
Contributions are welcome! Please read our contribution guidelines before submitting a pull request.