nodejs.org Open in urlscan Pro
2606:4700:10::6814:172e  Public Scan

Submitted URL: http://nodejs.org/
Effective URL: https://nodejs.org/en
Submission: On August 15 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

LearnAboutDownloadBlogDocsCertification
Start typing...Ctrl K


RUN JAVASCRIPT EVERYWHERE

Node.js® is a free, open-source, cross-platform JavaScript runtime environment
that lets developers create servers, web apps, command line tools and scripts.

Download Node.js (LTS)Download Node.js (LTS)Downloads Node.js v20.16.01 with
long-term support. Node.js can also be installed via package managers.Want new
features sooner? Get Node.js v22.6.01 instead.
Create an HTTP ServerWrite TestsRead and Hash a FileStreams PipelineWork with
Threads

// server.mjs
import { createServer } from 'node:http';

const server = createServer((req, res) => {
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  res.end('Hello World!\n');
});

// starts a simple http server locally on port 3000
server.listen(3000, '127.0.0.1', () => {
  console.log('Listening on 127.0.0.1:3000');
});

// run with `node server.mjs`


JavaScriptCopy to clipboard





Learn more what Node.js is able to offer with our Learning materials.

Trademark PolicyPrivacy PolicyCode of ConductSecurity Policy
© OpenJS Foundation