exit-tool
v1.0.1
Published
an exit tool with ppid-exit and timeout
Downloads
1
Readme
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 });