zx

JavaScript/TypeScript tool for writing shell scripts with better syntax

brewmacoslinux
Try with needOr install directly
Source

About

Tool for writing better scripts

Commands

zx

Examples

Run a simple shell command from JavaScript$ zx 'echo "Hello from zx"'
Execute a zx script file with shell commands$ zx ./script.mjs
Use async/await with shell commands in a script$ zx 'const result = await $`npm list`; console.log(result)'