google/zx
View on GitHub ↗ ★ 45,832 JavaScript
A tool for writing better scripts
45 mentions on Hacker News by 30 people: 11 stories, 34 comments · first 2021-05-06 · latest 2025-04-21
20082026
-
Not Python but this is exactly the idea behind zx https://github.com/google/zx
comment by dhruvrajvanshi · 2025-04-21 · in Python’s new t-strings -
I write a lot of JS/TS for my day job, so zx ( https://github.com/google/zx ) has been a nice tool for bash scripts that start getting a little too complex.
comment by gcmeplz · 2025-04-17 · in Advanced Shell Scripting with Bash (2006) [pdf] -
…you call /usr/bin/env zx, it will automatically retrieve any module imports you have in your code! https://github.com/google/zx
comment by jauntywundrkind · 2024-11-21 · in /usr/bin/env -S uv run -
You could try zx[1]! I prefer it to Bash scripting. [1] https://github.com/google/zx
comment by a_wild_dandan · 2024-09-06 · in Effects of Gen AI on High Skilled Work: Experiments with Software Developers -
Have you tried https://github.com/google/zx ?
comment by medv · 2024-07-25 · in Node.js adds experimental support for TypeScript -
Tried https://github.com/google/zx and never looked back.
comment by baxuz · 2024-07-17 · in Introduction to Bash Scripting -
▲ 3
Google/Zx v8.1story by todsacerdoti · 2024-05-13 · 0 comments
-
…scripting tasks that were just beyond maintainable bash, but maybe I'll give bun shell a go. [1] https://github.com/google/zx
comment by lvncelot · 2024-04-27 · in Bun’s New Crash Reporter -
▲ 3
Zx 8.0story by medv · 2024-04-08 · 0 comments
-
▲ 162
ZX – A tool for writing better scriptsstory by AbuAssar · 2024-02-10 · 137 comments
-
TIL about zx! https://github.com/google/zx This suite of tools feels indispensable. Anything to keep me from having to write/maintain bash scripts that are more than a series of commands.
comment by xavdid · 2024-02-10 · in Dax – Cross-platform shell for Node.js -
…, Bun Shell took inspiration from zx[0], dax[1] and bnx[2] [0]: https://github.com/google/zx [1]: https://github.com/dsherret/dax [2]: https://github.com/wobsoriano/bnx
comment by nateb2022 · 2024-01-21 · in The Bun Shell -
This looks exactly like zx by Google. And that's probably a good thing. https://github.com/google/zx
comment by lucasyvas · 2024-01-21 · in The Bun Shell -
…the ZX shell[2] JS library. Tho haven't tested it. [1]: https://github.com/sindresorhus/execa [2]: https://github.com/google/zx
comment by nathan_phoenix · 2024-01-20 · in The Bun Shell -
Why pick this over https://github.com/google/zx ?
comment by pprotas · 2024-01-20 · in The Bun Shell -
▲ 4
Zx: A tool for writing better scritpsstory by nateb2022 · 2024-01-07 · 2 comments
-
I really love writing with zx. https://github.com/google/zx We have some folks who have gone wild copy-pasting random fancy bash snippets into various developer helpers scripts. Zx did like 90% of that stuff out of the box, without being a…
comment by jauntywundrkind · 2023-10-19 · in YavaScript: Write shell scripts in JavaScript/TS instead of bash -
I ended up using this for my cli scripting needs. https://github.com/google/zx
comment by nerdbaggy · 2023-08-20 · in Scripting with Go (2022) -
> python There's a library for Node called Zx ( https://github.com/google/zx ) that provides a more shell-liked interface for Node. I've been working on something in Python, inspired by Zx and Xonsh ( https://xon.sh/ ), with syntax like…
comment by nerdponx · 2023-08-09 · in Pure Bash Bible (2018) -
Also javascript as an alternative for bash.. Not an official Google product of course but ... https://github.com/google/zx > Bash is great, but when it comes to writing more complex scripts, many people prefer a more convenient programming…
comment by emmelaich · 2023-05-19 · in The Case for Bash (2021) -
…to the per-project environments than `python` is to whatever virtualenv dependencies you have. [0] https://github.com/google/zx
comment by chatmasta · 2023-04-01 · in Python local packages directory proposal rejected (PEP 582) -
Something for Python akin to zx for JavaScript? https://github.com/google/zx
comment by 0x6c6f6c · 2023-01-28 · in Show HN: Clamshell- an experimental Python based shell -
▲ 3
ZX-shell: write JavaScript/TS+Bash scripts that download their dependenciesstory by nathan_phoenix · 2023-01-15 · 0 comments
-
I switched to https://github.com/google/zx . I'm tired of working with strings and prefer actual data structures.
comment by baxuz · 2022-10-28 · in Shell script best practices, from a decade of scripting things -
…super small tweaks/libraries & js becomes much simpler to script. there's also a deno port[2]. [1] https://github.com/google/zx [2] https://deno.land/x/zx_deno@1.2.2
comment by rektide · 2022-07-11 · in Perl is still relevant -
▲ 3
Zx 7.0.0story by medv · 2022-06-14 · 0 comments
-
…is pretty ok pipeline handling via streams, which finally have decent & well embraced standards. https://github.com/google/zx/blob/main/docs/pipelines.md Formatting as final step Im not as familiar with but it sounds like one could easily…
comment by rektide · 2022-05-09 · in Jeffrey Snower was originally demoted over PowerShell -
…here. More from the fringe, I'm quite enjoying zx, a really nodejs powered scripting environment. https://github.com/google/zx Covered somewhat in ZX 3.0 https://news.ycombinator.com/item?id=28195580 (189 points, 8 months ago, 163 points)
comment by rektide · 2022-05-08 · in Jeffrey Snower was originally demoted over PowerShell -
Has anyone else used https://github.com/google/zx here? I've started using that instead of bash script and js/node/deno scripts. it's kind of a nice combination of things. the only pain with this is writing to files. > doesn't just work.
comment by pvinis · 2022-04-25 · in The temptation of writing shell scripts, illustrated -
…jupyter or vscode notebooks are the closest it comes to practical literate programming. [1] https://github.com/google/zx#markdown-scripts [2] https://github.com/httpie/httpie [3] https://github.com/xo/usql
comment by lf-non · 2022-03-22 · in Literate programming is much more than just commenting code -
▲ 3
Zx 5.0.0story by medv · 2022-02-09 · 0 comments
-
…perhaps get added to something like ZX standard library. [1] https://github.com/shelljs/shelljs [2] https://github.com/google/zx [3] https://en.wikipedia.org/wiki/Staged_event-driven_architectu...
comment by rektide · 2021-11-08 · in Scripting languages of the future -
…how offbeat Perl is, every time I poke my head in. [1] https://github.com/shelljs/shelljs [2] https://github.com/google/zx [3] https://news.ycombinator.com/item?id=27486706 https://blog.metaobject.com/2021/06/glue-dark-matter-of-soft...…
comment by rektide · 2021-10-20 · in The reports of Perl’s death have been greatly exaggerated -
▲ 189
Zx 3.0story by medv · 2021-08-16 · 163 comments
-
▲ 3
Google/Zx vs. Godstory by atulanand94 · 2021-05-20 · 0 comments
-
You can use ZX to have Node in your shell: https://github.com/google/zx
comment by manigandham · 2021-05-13 · in Deno 1.10 Release Notes -
I believe Google just released https://github.com/google/zx . I am looking to refactor some "gnarly" and unreadable bash scripts in JavaScript and wondering what everybody thinks is the best option? Biggest pain points in my opinion in…
comment by nodesocket · 2021-05-09 · in Shelljs – Portable Unix shell commands for Node.js -
…that effect or at least used a different version number. Version 1.0.2 hardly screams ‘pre-alpha’. https://github.com/google/zx/blob/5ba6b775c4c589ecf81a41dfc9...
comment by pwdisswordfish8 · 2021-05-07 · in JavaScript for Shell Scripting -
…at least performs escaping instead of blindly concatenating shell scripts? Ah, who am I kidding. https://github.com/google/zx/blob/5ba6b775c4c589ecf81a41dfc9... function substitute(arg) { if (arg instanceof ProcessOutput) { return…
comment by pwdisswordfish8 · 2021-05-07 · in JavaScript for Shell Scripting -
▲ 385
JavaScript for Shell Scriptingstory by gigel82 · 2021-05-07 · 181 comments
-
▲ 2
A package for writing scripts on JavaScript instead of Bashstory by medv · 2021-05-06 · 0 comments