cush-shell:一次性外壳脚本

时间:2021-04-13 04:10:46
【文件属性】:
文件名称:cush-shell:一次性外壳脚本
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-13 04:10:46
TypeScript @ cush / shell 一次性外壳脚本 特征: Shell脚本可以做的任何事情 管道 多行 舍邦 自动包含set -e 可选的阻止模式 在脚本完成后或进程退出时进行清理 用 参数通过传递(有关更多信息,请参见自述文件) 用法 import shell from '@cush/shell' // Scripts can be indented if you like. const script = ` #!/usr/bin/bash ls | xargs -I {} echo {} ` const proc = shell ( script , ( stdout , stderr ) => { // This callback is optional. // See @cush /exec docs for more info. } ) // You can aw
【文件预览】:
cush-shell-master
----.gitignore(18B)
----package.json(864B)
----src()
--------index.ts(2KB)
----LICENSE(1KB)
----tsconfig.json(302B)
----rollup.config.js(538B)
----spec()
--------index.test.ts(0B)
----README.md(1KB)
----pnpm-lock.yaml(9KB)

网友评论