1.42.1 • Published 2 years ago

@biorate/shutdown-hook v1.42.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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.42.1

2 years ago

1.30.12

2 years ago

1.29.0

2 years ago

1.28.1

2 years ago

1.28.0

2 years ago

1.27.1

2 years ago

1.27.0

2 years ago

1.26.0

2 years ago