4 ms·
Wow I can't believe how light years ahead Deno is than Node. You want imports you want fetch you want TS, use Deno.
by stereocodes 5y ago
Wow I can't believe how light years ahead Deno is than Node. You want imports you want fetch you want TS, use Deno.
- andyfleming 5y agoWhy can't you use TypeScript with node? It's not built in, but it's easy enough to use by building or running it with ts-node. Also, once you are using TypeScript, you have import syntax support. Deno has chosen a different path, but there are definite trade-offs.
- stereocodes 5y agoYup the point I'm making is its built in. no hoops no babel. I find myself gravitating towards Deno before Node because with node I know I'll have to do some hoop jumping to make it work.
- ecf 5y agoSeriously. I maintain an open-source Node.js CLI utility and was shocked when import/export syntax is only achievable if you use a transpiler like Babel. Such overkill for something that’s been in the JS spec for nearly a decade.
- ash_gti 5y agoNode does support ESM now by default (and has supported it for a while behind a flag), https://nodejs.org/api/esm.html https://nodejs.org/api/esm.html
- Scarbutt 5y agoYes, and the go light years back in ecosystem ;)
- stereocodes 5y agosort of. There's only been one instance for me that this has caused any issues... I ended up just writing my own version of the missing tool. Deno has almost parity with node at the moment though https://deno.land/std@0.123.0/node https://deno.land/std@0.123.0/node.