exec-then:子进程执行承诺

时间:2021-06-23 20:53:44
【文件属性】:
文件名称:exec-then:子进程执行承诺
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-23 20:53:44
JavaScript 子进程使用承诺执行,延迟执行 安装 $ npm install --save exec-then 用法 var exec = require ( 'exec-then' ) ; exec ( 'pwd' ) . then ( function ( res ) { assert ( res . stdout . indexOf ( path . resolve ( __dirname , '../' ) ) !== - 1 ) ; } , function ( err ) { console . log ( err . toString ( ) ) ; assert ( false ) ; } ) ; exec ( [ 'ls' , '-al' ] , function ( std , deferred ) { if ( std . stdout . indexOf ( '
【文件预览】:
exec-then-master
----.jshintrc(209B)
----.gitignore(29B)
----package.json(557B)
----.travis.yml(38B)
----index.js(2KB)
----readme.md(1KB)
----test()
--------test.js(1KB)
----.editorconfig(415B)

网友评论