News for hackers. Stuff that matters.
Re:Deno 1.20 by tentacleuno on Thursday March 17, 2022 @10:35AM (#30711643)
Probably both. You can't use NPM (though you can use one of those online CDN's like unpkg) and the packages you can use probably don't work, as Deno doesn't support Node's API at all. It doesn't support any Node-specific packages like 'fs' or 'crypto' either.

Unless you're writing a totally new application and don't need anything (even retrospectively) from NPM, Deno probably won't work for you.

As much as I like Deno as a concept, I can't really use it. Making a totally new JavaScript runtime with new API's and no compatibility with the current largest runtime is a very ambitious goal, and I hope they succeed with it nevertheless.

Re:Deno 1.20 by MarkBennett on Thursday March 17, 2022 @10:49AM (#30711780)
You might want to consider giving Deno another shot, as they've spent a lot of time on building node comparability since v1.15 specifically to address these problems.

Many of the APIs you mentioned are supported already, while a few require the unstable flag...

https://deno.land/std/node/README.md

In my experience I've been able to use many node packages unmodified recently.

Re:Deno 1.20 by afavour on Thursday March 17, 2022 @12:00PM (#30712598)
> and no compatibility with the current largest runtime

Well… the current largest runtime is web browsers and Deno has a much better story there than Node does. But agreed, it’s a long road ahead.