【文件属性】:
文件名称:spawn-wait-for:生成并等待该过程输出与正则表达式匹配的行
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-08 09:51:23
JavaScript
产生等待
生成并等待该过程输出与正则表达式匹配的行。
安装
npm install --save spawn-wait-for
用法
var spawnWaitFor = require ( 'spawn-wait-for' ) ;
spawnWaitFor ( 'fakeServer' , / server is running / ) . then ( function ( obj ) {
obj = {
process : Object , // a child process object,
matches : Array , // the regex sub matches
line : String // the line that matched
} ;
} ) ;
【文件预览】:
spawn-wait-for-master
----.travis.yml(82B)
----spawn-wait-for.js(963B)
----package.json(891B)
----spec()
--------mocks()
--------support()
--------spawn-wait-for-spec.js(693B)
----.gitignore(14B)
----README.md(568B)