shella:使用 execa 运行 shell 脚本的标记模板

时间:2021-08-03 17:31:58
【文件属性】:
文件名称:shella:使用 execa 运行 shell 脚本的标记模板
文件大小:78KB
文件格式:ZIP
更新时间:2021-08-03 17:31:58
shell template execa tagged JavaScript 贝拉 使用运行 shell 脚本的标记模板。 安装 $ npm i shella 用法 shella返回一个值, 回报。 const shella = require ( 'shella' ) ; ( async ( ) => { // async by default await shella ` echo abcde | sed -e 's/bcd/!!!/' > ./result.txt grep a ./result.txt` ; // interporation (shell-escaped) const msg = `Bob's pen` ; await shella `echo ${ msg } ` ; } ) ( ) ; // sync shella . sync `echo foo` ; 选项 您可以为指定选项。 shella指定s
【文件预览】:
shella-master
----.eslintrc.json(76B)
----.circleci()
--------config.yml(2KB)
----test()
--------index.js(2KB)
----LICENSE.md(1KB)
----README.md(2KB)
----renovate.json(38B)
----CODE_OF_CONDUCT.md(3KB)
----.gitignore(13B)
----index.js(817B)
----package-lock.json(280KB)
----package.json(969B)

网友评论