Node.js

187 readers
2 users here now

founded 9 months ago
MODERATORS
1
2
3
4
5
6
5
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

The Node.js project will release new versions of the 18.x, 20.x, 21.x releases lines on or shortly after, Tuesday, April 9, 2024 in order to address:

  • 1 high severity issues.
  • 1 medium severity issues.
7
6
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

Linked in the post is 21.7.2

8
7
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

The Node.js project will release new versions of the 18.x, 20.x, 21.x releases lines on or shortly after, Wednesday, April 3, 2024 in order to address:

  • 1 medium severity issue.
  • 1 high severity issue.
9
10
6
require(esm) in Node.js (joyeecheung.github.io)
submitted 3 months ago by [email protected] to c/[email protected]
11
 
 

cross-posted from: https://programming.dev/post/11927506

Many times when I’ve tried to write some code in Node.js using ES modules I’ve found myself reaching for __dirname and then looking up how to replace it. Now Node.js, Deno and Bun support import.meta.dirname. Check out the article for more detail.

12
13
14
15
16
 
 

Here's a reminder that the good people behind Express.js are currently working on Express 5, currently in beta.

17
18
19
20
21
22
23
24
25
 
 

Hi y'all, sorry if these are really basic questions, but I'm just starting out learning node. I've been developing software for a long time, and web sites / apps for a couple of years, but nothing too advanced yet, mostly in vanilla HTML/JS and a little PHP. I swear I am trying to keep an open mind on all of this but some of these ideas are really new / different for me.

  1. Is Express really just for API development, or can I use it to create a basic web app as well? (I've read others saying this but I find this idea confusing -- e.g.: https://alternativeto.net/software/expressjs/ "Express is for building REST APIs (backend). Meteor is for building the full stack webapp")

  2. Do you get used to the idea of incorporating other people's code into your node projects? (Because as an older developer, all this "just add this framework which has 122 dependencies of its own" seems like mania. How could you ever say a project built on hundreds of other projects [which all have their own dependencies too] could ever be said to be safe or secure? And won't changes in those projects break my project eventually?)

  3. Is there no way to process a POSTed form with just the built-in Node functions when the form enctype is "multipart" -- without adding in Express or some other framework? (I've searched and searched and all the examples I found for doing this without Express assume the form's enctype is "x-www-form-urlencoded" but my form will be used to upload a file.)

Thanks for any advice / info!

view more: next ›