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

1.0.16 • 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);

/@alwatr/exit-hook/

    Package Sidebar

    Install

    npm i @alwatr/exit-hook

    Weekly Downloads

    328

    Version

    1.0.16

    License

    MIT

    Unpacked Size

    16.4 kB

    Total Files

    10

    Last publish

    Collaborators

    • alimd