0.1.5 • Published 4 years ago

pikaz-shell v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Introduction

简单封装的执行命令的node脚本。

Installation

With npm or yarn

yarn add pikaz-shell

npm i -S pikaz-shell

For Typical use

以windows操作系统为例

const shell = require("./index")
shell([{ cmd: ["tree>tree1.txt","tree>tree2.txt"]},{ cmd: ["mkdir pikaz-shell"], path: "D:\\" }])

Demo代码

Methods:

方法名说明参数
shell导出函数function(attributes)
参数说明类型可选值默认值
cmd需执行的命令String[]----
path进程的当前工作目录string--null(执行node文件的当前目录)
timeout超时时间number--0
0.1.5

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago