google/zx

Published on Oct 5, 2026
★ 45.8k JavaScript Apache-2.0

Why 47k developers replaced fragile bash scripts with google/zx

Stop writing complex bash scripts when you can use zx.

Bash scripts break on space escaping, quoting bugs, and error handling.

Traditional bash scripts easily fail on filenames with spaces, inconsistent pipe exits, and painful string interpolation.

Bash fragility vs modern scripting runtimes

google/zx wraps child processes in clean JavaScript template literals.

With google zx, you execute shell commands directly inside JavaScript using tagged template literals with built-in quote escaping.

Modern command execution with automatic escaping

Run scripts asynchronously with built-in pipe streaming and error catching.

Command output streams straight to your terminal, and failed exit codes throw catchable JavaScript exceptions automatically.

Structured exceptions and pipe streaming

Includes fetch, chalk, globby, and YAML parsing out of the box.

No separate npm install dance: zx bundles HTTP fetch, terminal colors, glob file matching, and YAML parsers right out of the box.

Zero configuration scripting batteries included

Over forty-seven thousand stars. Open source under the Apache-2.0 license.

Maintained under Google's open-source umbrella, zx has over forty-seven thousand GitHub stars, open source under the Apache-2.0 license.

google/zx · Apache-2.0 license