# via npm
$ npm i pretty-shell --save
$ npm i pretty-shell -g
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')
category | command | description |
---|---|---|
fs | cd | |
ls | ||
cat | ||
chmod | ||
cp | ||
find | ||
pwd | ||
net | ifconfig | |
netstat | ||
ping | ||
os | date | |
free | ||
uname |
const { find } = require('pretty-shell')