Node.js

Node.js
Logo
Ontwerp en ontwikkeling
Categorie Softwareplatform
Ontwikkelaar(s) Ryan Lienhart Dahl, Node.js Developers, Joyent
Besturings­systeem Linux, Windows, BSD, macOS
Geschreven in C, C++, JavaScript
Status en tijdlijn
Status Actief
Uitgebracht 27 mei 2009 (17 jaar)
Recentste versie 26.5.1 (29 juli 2026)[1] Bewerken op Wikidata
Onderhouds­versie 20.19.6 (LTS)[2] 
(2025-11-25)
Onderdelen
Afhankelijk van V8, OpenSSL
Licentie(s) MIT
Links
Website (ar) (de) (en) Projectpagina
Blog Blog
Versiebeheer Broncode
Portaal  Portaalicoon   Informatica
Vrije software


Node.js is een open source en multiplatform JavaScript-runtime-omgeving waarmee JavaScript buiten een browser uitgevoerd kan worden. Met Node.js kunnen ontwikkelaars JavaScript gebruiken voor command-line-tools en server-side scripting. Het resultaat is een "JavaScript overal"-paradigma dat webapplicatie-ontwikkeling verenigt rond een enkele programmeertaal, in plaats van verschillende talen voor server- en client-side scripts.[3]

Geschiedenis

Node.js is aanvankelijk gebouwd door Ryan Dahl, in eerste instantie om pushtechnologie te gebruiken in websites. Node.js implementeert specificaties van CommonJS.[4]

Functies

Node.js bevat een ingebouwde HTTP-server, waardoor het mogelijk is een webserver te draaien zonder Apache of nginx. Daardoor biedt Node.js een alternatieve manier van server-side scripting, vergeleken met andere platformen zoals Java EE, ASP.NET, Ruby On Rails of een traditionele webserver met CGI-modules voor diverse programmeertalen zoals PHP, Perl of Python.

Online code-editors

Voorbeeld

Navolgend een implementatie van een "hello world"-webserver met Node.js:

var http = require('http');
http.createServer(
  function (request, response) {
    response.writeHead(200, {'Content-Type': 'text/plain'});
    response.end('Hello World\n');
  }
).listen(8000);
console.log('Server running at http://localhost:8000/');
Zie de categorie Node.js van Wikimedia Commons voor mediabestanden over dit onderwerp.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.