D
Deno

help

Reasons to choose Node.js

Aabi6/16/2023
I've been tasked to write a list of pros/cons of Deno in comparison to Node.js. I am quite honestly having a hard time formulating that many "pros" of Node.js. Could someone please let me know: what good reasons are there to choose Node.js today?
AJAlex Jeffcott6/16/2023
I can think of three things in no particular order: 1. esbuild treats it as first-class, if that makes sense. 2. Playwright does not support Deno 3. it is the default choice for many devs
TTheYuriG6/16/2023
the larger ecossystem and the large quantity of tutorials around it are 2 good reasons while the NPM support in Deno is great, it's not yet 100% Node.JS allows you to pretty much copy and paste code without thinking too hard
Aabi6/16/2023
thanks, these are good reasons. if you think of more reasons, please do send them.
NNeTT6/16/2023
Majority of popular frameworks are Node-first / Node-only (eg. Nuxt, Next, etc). Dev experience. You'd normally find it easier to write large apps in Node due to the big ecosystem and dev tools.

Looking for more? Join the community!

Recommended Posts
Reejs not working on Deno v1.34```js deno run -A npm:reejs [INFO] Saving important data... [TIP] If the error indeno.land published the same GitHub tag twicehttps://deno.land/x/smee_client_unofficial@v1.2.3 Could someone please just delete the older one?Uncaught (in promise) eof for websocket/root/.pm2/logs/twitter-follow-checker-error.log last 15 lines: 0|twitter_ | Deno hangs on errorWhy does Deno hang when XML.parse throws an error? ``` let text = '<xml><xbrli:xbrl><hi>Hello</hi><[SOLVED] deno.lock keeps getting populated with dependencies I don't needI have tried to use a syntax highlighter before and have since removed it from my project, but everyWhat a method prefixed with `#` means?This is perhaps the stupidest question ever. But I often see method with names prefixed with a `#`Logger names and prefixesIs there any obvious way on how to configure std/log so that loggers named `my-prefix/foo/bar` and `Deno and `npm:mongodb` problem with `node:`?``` ❯ deno check --reload main.ts error: Relative import path "net" not prefixed with / or ./ or ../DiscordJS "Error: Not implemented: ClientRequest.options.createConnection"```ts import { GatewayDispatchEvents, GatewayIntentBits, InteractionType, MessageFlags, Client } froUsing Superagent in Deno?Has anyone managed to make Superagent work nicely in Deno? ``` _ { type: "error", message: "BroOak – ctx.assert with custom response headersAm I doing this wrong? No extra custom headers are being set in the response as far as I can see in npm:undici doesn't workhttps://github.com/denoland/deno/issues/16710 Marked as resolved by this issue but does not work in Abusing prototype CryptoKey in `node:crypto`Is there any way that I can set the prototype of an object to specifically `CryptoKey` as defined byUncaught (in promise) TypeError: cannot read headers: request closedWhat is this? How to fix it?