I'm loving the explosion of scripting tools for Node (and similar). There was basically nothing for ages. Then ZX come along and made scripting so much easier, and quickly has become indispensable for me. Now we have more choices and more innovation? Really exciting.
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.
Dax – Cross-platform shell for Node.js
11–20 of 26 posts
Re: Dax – Cross-platform shell for Node.js
#12Bun also has a shell: https://bun.sh/blog/the-bun-shell
I've been using zx for a couple years now, it's a handy all-in-one library. It's gradually replacing my Bash scripts, and I tend to reach for it for any new shell scripting needs. With Bun's fast startup time, it's also gradually replacing Node.js and zx.
Re: Dax – Cross-platform shell for Node.js
#13Re: Dax – Cross-platform shell for Node.js
#14Google ZX – A tool for writing better scripts
https://news.ycombinator.com/item?id=39323986 (8 comments)
Re: Dax – Cross-platform shell for Node.js
#15So it would result in magnitudes of more usage if it was integrated, which seems to be the path Bun is taking.
Re: Dax – Cross-platform shell for Node.js
#16Re: Dax – Cross-platform shell for Node.js
#17Just wonderful - between Dax, zx and bun-shell we have 3 different tools with near similar syntax pretty much doing the same thing. Until a winner emerges, its just best to stick to Python.
Re: Dax – Cross-platform shell for Node.js
#18Re: Dax – Cross-platform shell for Node.js
#19Just wonderful - between Dax, zx and bun-shell we have 3 different tools with near similar syntax pretty much doing the same thing. Until a winner emerges, its just best to stick to Python.
If you stick to Python until a winner emerges, how does that help you? You'd have some old scripts in python, and some new ones in WinnerJS, which I think it's worse than having some in WinnerJS and some in LoserJS.
Your LoserJS scripts won't stop working. At least Bun-shell and Dax scripts in the same language. Since Bun's got some inspiration from Dax, I'm sure the API won't be that different.
I'm usually not one to jump on new JS stuff, but writing scripts on any of these feels relatively low risk.
Also, I'm still maintaining code that uses the ORM-that-lost, and the Dates-library-we-don't-use-anymore, and it's OK.
Re: Dax – Cross-platform shell for Node.js
#20Haven't had this need in at least a year though. From looking on npmtrends[0], ShellJS still seems the incumbent and quite alive.
Are these new zx/dax/bun-shell tools, each inspired in the previous one, way better?