Live data from Hacker News

Dax – Cross-platform shell for Node.js

david.deno.dev

21–26 of 26 posts

Re: Dax – Cross-platform shell for Node.js

#21

I still wish all of these would default to a synchronous mode of operation, maybe with something like an „unawait“ keyword for those cases where you really benefit from async behavior?

I'm curious, when do you need this?

I still use `writeFileSync` and such out of habit, but I don't think I really need them since we got first-level await (out of async functions).

Re: Dax – Cross-platform shell for Node.js

#23
post #16

Just 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.

What is the difference between picking "wrong" and sticking with Python?

Re: Dax – Cross-platform shell for Node.js

#24
post #20

There was a time I was writing scripts using Node about once a week, and I settled on ShellJS. I don't remember loving the experience. Haven'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? [0]: https://npmtrends.com/dax-vs-shelljs-vs-zx

I've used ShellJS as well with node. These days I'm more inclined to use Deno just for better ergonomics. That said, now that I know about dax, I'll probably use that with Deno.

I haven't used bun shell at all.

Re: Dax – Cross-platform shell for Node.js

#25

Shells are first and foremost the core of the CLI for interactive use of the computer. Secondarily for scripting... but I don't see anything about using any of these shells as your standard computer interface. Am I missing something?

You could use an interactive shell in Deno and import the module... You can do it interactively that way. Not sure that I would.

Re: Dax – Cross-platform shell for Node.js

#26
post #16

Just 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.

What is the difference between picking "wrong" and sticking with Python?

Well, dependencies are far easier to deal with using Deno than in Python for starters.
Post reply on HN