terminate:根据进程ID终止Node.js进程(和所有子进程)

时间:2021-05-11 21:40:27
【文件属性】:
文件名称:terminate:根据进程ID终止Node.js进程(和所有子进程)
文件大小:35KB
文件格式:ZIP
更新时间:2021-05-11 21:40:27
JavaScript 终止 一种基于进程ID终止Node.js进程(和所有子进程)的极简但可靠(经过测试)的方法 用法 从NPM安装 npm install terminate --save 在您的脚本中 var terminate = require ( 'terminate' ) ; terminate ( process . pid , function ( err ) { if ( err ) { // you will get an error if you did not supply a valid process.pid console . log ( "Oopsy: " + err ) ; // handle errors in your preferred way. } else { console . log ( 'done' ) ; // terminatin
【文件预览】:
terminate-master
----.travis.yml(139B)
----package.json(1KB)
----test()
--------test.js(8KB)
--------exec()
----LICENSE(15KB)
----package-lock.json(86KB)
----appveyor.yml(660B)
----handlePsTreeCallback.js(1KB)
----terminate.js(2KB)
----.gitignore(587B)
----README.md(7KB)
----.jshintrc(660B)

网友评论