axx
- execution of shell commands
- async/await functionality for easy concurrency control
- streaming, proper piping
npm install axx
require("axx")
lean functions
- axx — run shell command
- raxx — read from file
- waxx — write to file
- caxx — log to stdout (the console)
memory-hog functions
- maxx — same as axx, but returns the full stdout result
- mraxx — same as raxx, but returns the whole file to result
examples
const axx raxx waxx = const n = `$(npm bin)` // "node_modules/.bin" { // minify a script await // run a few concurrent operations, wait for them all to complete await Promiseall console}
some more contrived examples
// log the package.json to the console just so i can see itawait // alternative (memory-hog) way to log to the consoleconst text = await console