@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);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.10
    64
    • latest

Version History

Package Sidebar

Install

npm i @alwatr/exit-hook

Weekly Downloads

64

Version

1.0.10

License

MIT

Unpacked Size

14.9 kB

Total Files

11

Last publish

Collaborators

  • njfamirm
  • alimd