qqjs
A bunch of wrappers for various utilites. Ideal for writing shell scripts in node.
Usage
It's best to look at the code to see what all is available, but here is an example of using it:
const qq = // qq.run(fn) is just fn().catch(qq.handleError)// this helps skip a couple of steps when running async functions in scriptsqq
Status
- x (exec)
- readJSON
- writeJSON
- path
- mkdirp
- env
- globby
- read file
- write file
- cd
- ls
- cp (use cpy)
- mv
- rm
- cwd
- file exists
- homedir
- chmod
- download files
- emptyDir
- ln
- is file/directory/symlink/etc
- batch rename
- sed
- upload files
- aws s3
- resolve-from
- open-editor
- hasha
- temp dirs
- temp files
- git stuff?
- find-up
- read-pkg
- which
- pushd/popd