3 ms·
I really really enjoy using zx. As a dev it lets me get back to a good scripting language, where I process input, run other programs, emit output. Powerful & s
by jauntywundrkind 3y ago
I really really enjoy using zx.
As a dev it lets me get back to a good scripting language, where I process input, run other programs, emit output. Powerful & succinct.
As a tool maker, it helps me show my work. Many of the common tasks like running an script or calling fetch will by default log what's happening in clear format, pass through the activity. It's fantastic to write these devtools that do a bunch of tasks, but are showing their work at every step. If something goes wrong, the person immediately sees the evidence of what was ran & what the output was. It helps close the iteration loop very effectively.
Zx makes such a huge difference, while being little more than a couple small good ideas to help node.js be more shell-scipty. Good stuff.
I haven't tried Dax, another scripting system atop js, but I see zx glowingly mentioned in it's recent submission. https://news.ycombinator.com/item?id=39315689 https://news.ycombinator.com/item?id=39315689
- pmontra 3y agoAn immediately visible problem with zx is that wrapping commands in $`` makes it harder to copy and paste them back and forth to the shell to test them. Did that slowed you down sometimes or added an occasional bug?