@alwatr/exit-hook
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

Exit Hook

A utility for registering exit handlers in Node.js.

Installation

yarn add @alwatr/exit-hook

Usage

import {exitHook} from '@alwatr/exit-hook';

const saveAllData = () => {
  // save all data
};

exitHook(saveAllData);

Package Sidebar

Install

npm i @alwatr/exit-hook

Weekly Downloads

63

Version

1.0.10

License

MIT

Unpacked Size

14.9 kB

Total Files

11

Last publish

Collaborators

  • njfamirm
  • alimd