【文件属性】:
文件名称:node-windows-service-controller:Node 的 Windows 服务控制器
文件大小:42KB
文件格式:ZIP
更新时间:2021-07-02 17:44:11
JavaScript
窗口服务控制器
节点的 Windows 服务控制器。 包裹 。
安装
$ npm install windows-service-controller --save
用法
所有命令都返回一个承诺。 sc命令返回的信息(如果有)将在 promise 解决时被解析和传递。 当承诺被拒绝时,来自sc的错误消息也会被解析和传递。 除非另有说明,promise 在sc退出时被解析。
var sc = require ( 'windows-service-controller' ) ;
sc . getDisplayName ( 'SomeService' )
. catch ( function ( error ) {
console . log ( error . message ) ;
} )
. done ( function ( display
【文件预览】:
node-windows-service-controller-master
----src()
--------process.js(872B)
--------sc-parser.js(5KB)
--------coordinator.js(891B)
--------sc.js(4KB)
--------tasklist-parser.js(564B)
--------sc-command.js(6KB)
--------tasklist-command.js(251B)
----.travis.yml(79B)
----gulpfile.js(582B)
----LICENSE(1KB)
----test()
--------acceptance()
--------unit()
----README.md(24KB)
----.gitignore(131B)
----package.json(973B)