0.0.3 • Published 5 years ago
naut v0.0.3
naut
simpler version of shelljs
Usage
const naut = require("naut");
naut.ls().forEach(file => {
naut.mv(file, file + ".bak");
});Global Usage
require("naut/global");
ls().forEach(file => {
mv(file, file + ".bak");
});API
- ls
- pwd
- cd
- rm
- Always behaves like
-rfis set
- Always behaves like
- mkdir
- Always behaves like
-pis set
- Always behaves like
- cp
- You can pass
-Ror-ror-ato as the first argument to copy a directory instead of a file
- You can pass
- mv
- touch
- cat
- exec
- $ (command substitution simulator)
- echo
- You can use
.toand.toEndlike in shelljs
- You can use