SHELIT
A small node.js tool to run shell commands
Importing the Library
// using es2015 // or using commonjsconst shelit =
Usage
shelit.run Run a single shell command
// Promises shelit // async await { try await shelit catcherr console }
shelit.runSeries Run multiple commands in series
// async await { let commands = "rm -rf node_modules" "npm i" ; try await shelit catcherr console }
shelit.runParallel Run multiple commands in parallel
// async await { let commands = "rm -rf node_modules" "rm -rf dist" ; try await shelit catcherr console }