Hacker GitHub

← All repos

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

Mentions per year 45 mentions · busiest year 2024 (14)
20082026
  1. 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
  2. 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.
  3. …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
  4. You could try zx[1]! I prefer it to Bash scripting. [1] https://github.com/google/zx
  5. Have you tried https://github.com/google/zx ?
  6. Tried https://github.com/google/zx and never looked back.
    comment by baxuz · 2024-07-17 · in Introduction to Bash Scripting
  7. …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
  8. 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.
  9. …, 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
  10. 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
  11. …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
  12. Why pick this over https://github.com/google/zx ?
    comment by pprotas · 2024-01-20 · in The Bun Shell
  13. 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…
  14. 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)
  15. > 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)
  16. 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)
  17. …some Deno takes on it). It's amazing how little is needed to make JS pretty handy for scripting. https://github.com/google/zx I'd love some day to have the power-shelly dream of an object oriented platform. But I don't want to renounce all…
    comment by rektide · 2023-04-21 · in Why Perl?
  18. …to the per-project environments than `python` is to whatever virtualenv dependencies you have. [0] https://github.com/google/zx
  19. Something for Python akin to zx for JavaScript? https://github.com/google/zx
  20. I switched to https://github.com/google/zx . I'm tired of working with strings and prefer actual data structures.
  21. …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
  22. …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…
  23. …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)
  24. 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.
  25. …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
  26. …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
  27. …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...…
  28. …to prevent command injection. Is that handled by the Ruby and Perl backtick syntax as well? [1] https://github.com/google/zx/blob/3.0.0/test.mjs#L30-L33
    comment by ptx · 2021-08-16 · in Zx 3.0
  29. …… await $`mkdir /tmp/${name}` Code like this[1] looks prone to shell injection [1] https://github.com/google/zx
    comment by lixtra · 2021-08-16 · in Zx 3.0
  30. The code in the main readme ( https://github.com/google/zx ) has an example of parallelism (the Promise.all line).
    comment by tgsovlerkhgsel · 2021-08-16 · in Zx 3.0
  31. 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
  32. 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…
  33. …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
  34. …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