3.0.10 • Published 3 years ago

@titodp/on-exit v3.0.10

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

on exit

Calls functions before node exits. A node exit handler.

Installation

npm install @titodp/on-exit

Usage

You may return a promise to hold the process.

import onExit from '@titodp/on-exit'

onExit(() => console.log('imma go soon'))

onExit(() => console.log('bye cruel world'))

onExit(() => new Promise(resolve => setTimeout(resolve, 1000)))

Author

URLs

3.0.4

3 years ago

3.0.3

3 years ago

3.0.10

3 years ago

3.0.2

3 years ago

3.0.8

3 years ago

3.0.7

3 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.9

3 years ago

3.0.1

3 years ago