Node.js
| Node.js | ||||
|---|---|---|---|---|
| Ontwerp en ontwikkeling | ||||
| Categorie | Softwareplatform | |||
| Ontwikkelaar(s) | Ryan Lienhart Dahl, Node.js Developers, Joyent | |||
| Besturingssysteem | 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] | |||
| Onderhoudsversie | 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 | |||
| ||||
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
- Codenvy IDE (cloud service)
- Cloud9 IDE (cloud service)
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/');
Externe link
- (ar) (de) (en) Projectpagina
- ↑ "Release 26.5.1"; geraadpleegd op: 1 augustus 2026; taal van werk of naam: Engels; datum van uitgave: 29 juli 2026.
- ↑ News from 2025
- ↑ Everywhere and the Three Amigos (Into the wild BLUE yonder!) - IBM
- ↑ Implementations/node.js - CommonJS Spec Wiki
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.
- 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:
- 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.
- 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.
- 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.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.