Powscript is a bash dialect transpiler written in bash that provides a CoffeeScript-inspired, indentation-based syntax for shell scripting. It compiles to bash (version 4+) or experimental POSIX sh, reducing semantic noise from traditional shell syntax. Features include automatic quoting, safety checks (halt on error, require_cmd/require_env), functional programming constructs, JSON support, module system, and easy async. The current stable version is 0.9 (based on old compiler), with a new compiler in development (beta available). It is self-installing with no external dependencies (bash-only) and targets embedded systems or any environment where bash is available. Key differentiator: no need for gcc or node – pure bash, but not actively maintained.
npm install powscriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install powscript, create a simple script with argument handling, run it directly, and compile to bash.
Upgrade bash to version 4 or later, or use a different shell.
Check the beta compiler repository for migration notes.
Consider alternatives like shellcheck, bashate, or writing bash directly if future support is needed.
Manually verify output with checkbashisms or stick to bash output.
Download and make executable: wget -O /usr/local/bin/powscript https://raw.githubusercontent.com/coderofsalvation/powscript/master/powscript && chmod +x /usr/local/bin/powscript
Re-download the raw script from GitHub using wget or curl.
Install the missing command (e.g., via apt-get, yum) or remove the require_cmd line.
No dependency data recorded yet.