4 ms·
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 sup
by tentacleuno 5y ago
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.
- MarkBennett 5y agoYou 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 https://deno.land/std/node/README.md In my experience I've been able to use many node packages unmodified recently.
- afavour 5y ago> 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.