1.102.1 • Published 10 months ago

@biorate/shutdown-hook v1.102.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Shutdown hook

Shutdown hook implementation for Node.JS

Example:

import { ShutdownHook } from '@biorate/shutdown-hook';
import { timer } from '@biorate/tools';

ShutdownHook.subscribe(async (reason) => {
  await timer.wait(100);
  console.log(reason); // 'SIGINT'
});

process.kill(process.pid, 'SIGINT');

Learn

  • Documentation can be found here - docs.

Release History

See the CHANGELOG

License

MIT

Copyright (c) 2021-present Leonid Levkin (llevkin)

1.100.0

10 months ago

1.102.0

10 months ago

1.102.1

10 months ago

1.42.1

2 years ago

1.30.12

2 years ago

1.29.0

3 years ago

1.28.1

3 years ago

1.28.0

3 years ago

1.27.1

3 years ago

1.27.0

3 years ago

1.26.0

3 years ago