pretty-shell
v0.0.4
Published
utilities for using unix shell commands from node.js
Downloads
261
Readme
Quick start
Install
# via npm
$ npm i pretty-shell --save
$ npm i pretty-shell -g
Usage
Command line:
$ shx mkdir -p foo
$ shx touch foo/bar.txt
$ shx rm -rf foo
Node API:
const shell = require('pretty-shell')
const { mkkdir, touch , rm } = require('pretty-shell')
Configuration
Commands
| category | command | description | | ----- | ------ | ----- | | fs | cd || | | ls || | | cat || | | chmod || | | cp || | | find || | | pwd || | net | ifconfig || | | netstat || | | ping || | os | date || | | free || | | uname ||
Examples
const { find } = require('pretty-shell')