node-async-exec::game_die: 使用 exec 异步运行 shell 命令

时间:2021-08-04 17:07:39
【文件属性】:
文件名称:node-async-exec::game_die: 使用 exec 异步运行 shell 命令
文件大小:49KB
文件格式:ZIP
更新时间:2021-08-04 17:07:39
nodejs shell asynchronous asynchronously exec :game_die: 节点异步执行 异步运行 exec 命令并在需要时更改目录以运行命令的包。 特征 异步运行 shell 命令。 在特定目录中运行 shell 命令/命令。 在后台使用和 。 可用于构建基于 CLI 和 Node.js 的工具。 安装 # install the package npm install node-async-exec 用法 运行 shell 命令 const exec = require ( 'node-async-exec' ) ; ( async ( ) => { try { await exec ( { cmd : `touch example.md` } ) } catch ( err ) { console . log ( err ) ; } } ) ( ) 更改目录并在其中运行命令 const exec = require ( 'n
【文件预览】:
node-async-exec-master
----.gitattributes(19B)
----contributing.md(355B)
----test.js(695B)
----code-of-conduct.md(5KB)
----.prettierrc.json(144B)
----license(1KB)
----assets()
--------workflow.png(14KB)
--------rocket.png(20KB)
--------suitcase.png(9KB)
----.npmrc(19B)
----.editorconfig(129B)
----.gitignore(912B)
----index.js(1KB)
----readme.md(2KB)
----package.json(632B)
----changelog.md(301B)

网友评论