sh-syntax

JSON →
library 0.5.8 ·javascript
verified Jun 4, 2026

A WASM shell parser and formatter with bash support, based on mvdan/sh. Version 0.5.8, maintained and released regularly via changesets. Ships TypeScript types, ESM-only, supports Node >=16 and browsers. Unlike alternatives like 'shell-parser' or 'bash-parser', it is WASM-based (fast, ~18ms/iter on M1) and provides both parse and print (format) operations with bash compatibility. Includes a benchmark showing consistent performance.