exit-tool

1.0.1 • Public • Published

exit-tool

an exit tool with ppid-exit and timeout

Install

npm install exit-tool

Usage & Api

var exit_tool = require("exit-tool");

console.log("NOTE: This test program and its parent process will exit, after 3 seconds ...");

/*
exit_tool( [options] ) 

options
	.killParent
		set true to kill the parent process
	.delay
		the delay milliseconds
	.exitCode
		the exit code
	.debug
		show debug message
*/
exit_tool({ killParent: true, debug: true, delay: 3000, exitCode: 0 });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i exit-tool

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

2.73 kB

Total Files

4

Last publish

Collaborators

  • adf0001