2011-12-12 23:19:14 +01:00
<!doctype html>
2011-12-20 05:57:45 +01:00
< html lang = "en" >
2009-06-05 12:23:51 +02:00
< head >
2011-12-20 05:57:45 +01:00
< meta charset = "utf-8" >
2011-12-12 23:19:14 +01:00
< link type = "image/x-icon" rel = "icon" href = "favicon.ico" >
< link type = "image/x-icon" rel = "shortcut icon" href = "favicon.ico" >
2011-12-20 05:57:45 +01:00
< link rel = "stylesheet" href = "pipe.css" >
< link rel = "stylesheet" href = "sh_vim-dark.css" >
2011-03-17 21:32:27 +01:00
< link rel = "alternate"
type="application/rss+xml"
2011-03-18 23:49:26 +01:00
title="node blog"
2011-12-12 23:19:14 +01:00
href="http://feeds.feedburner.com/nodejs/123123123">
2009-06-05 12:23:51 +02:00
< title > node.js< / title >
< / head >
2012-01-23 11:12:20 +01:00
< body id = "front" >
2011-12-12 07:25:42 +01:00
< div id = "intro" >
2012-02-13 23:47:50 +01:00
< img id = "logo" src = "http://nodejs.org/images/logo.png" alt = "node.js" >
2009-06-05 12:23:51 +02:00
2011-12-12 07:25:42 +01:00
< p > Node.js is a platform built on < a
href="http://code.google.com/p/v8/">Chrome's JavaScript runtime< / a >
for easily building fast, scalable network applications. Node.js
uses an event-driven, non-blocking I/O model that makes it
lightweight and efficient, perfect for data-intensive real-time
applications that run across distributed devices.< / p >
2009-06-05 12:23:51 +02:00
2012-09-11 17:43:20 +02:00
< p > Current Version: __VERSION__< / p >
2012-08-16 18:56:31 +02:00
< div class = buttons >
< a href = "http://nodejs.org/dist/__VERSION__/node-__VERSION__.tar.gz" class = "button downloadbutton" id = "downloadbutton" > INSTALL< / a >
< a href = "download/" class = button id = "all-dl-options" > Downloads< /a
>< a href = "api/" class = "button" id = "docsbutton" > API Docs< / a >
< / div >
2012-04-27 16:58:38 +02:00
2012-09-11 17:45:18 +02:00
< a href = "http://github.com/joyent/node" > < img class = "forkme" src = "http://nodejs.org/images/forkme.png" alt = "Fork me on GitHub" > < / a >
2011-12-12 07:25:42 +01:00
< / div >
2012-08-16 18:56:31 +02:00
2011-12-12 07:25:42 +01:00
< div id = "quotes" class = "clearfix" >
< h2 > Node.js in the Industry< / h2 >
< ul >
2012-02-13 23:47:50 +01:00
< li class = "microsoft" > < img src = "http://nodejs.org/images/microsoft-logo.png" >
2011-12-12 07:25:42 +01:00
< p > Node gives Azure users the first end-to-end JavaScript
experience for the development of a whole new class of real-time
applications.
2011-12-12 23:19:14 +01:00
< br >
2012-06-29 07:23:53 +02:00
< a href = "https://www.windowsazure.com/en-us/develop/nodejs" > Claudio Caldato< / a >
2011-12-12 23:19:14 +01:00
< br >
2012-06-29 07:23:53 +02:00
< span > Principal Program Manager, Microsoft Open Technologies, Inc.< / span > < / p >
< / li >
2011-12-12 07:25:42 +01:00
2012-02-13 23:47:50 +01:00
< li class = "ebay" > < img src = "http://nodejs.org/images/ebay-logo.png" >
2011-12-12 07:25:42 +01:00
< p > Node’ s evented I/O model freed us from worrying about locking
and concurrency issues that are common with multithreaded async
I/O.
2011-12-12 23:19:14 +01:00
< br >
2011-12-12 07:25:42 +01:00
< a href = "http://www.ebaytechblog.com/2011/11/30/announcing-ql-io/" > Subbu Allamarju< / a >
2011-12-12 23:19:14 +01:00
< br >
2011-12-12 07:25:42 +01:00
< span > Principal Member, Technical Staff< / span > < / p > < / li >
2012-02-13 23:47:50 +01:00
< li class = "linkedin" > < img src = "http://nodejs.org/images/linkedin-logo.png" >
2011-12-12 07:25:42 +01:00
< p > On the server side, our entire mobile software stack is
completely built in Node. One reason was scale. The second is
Node showed us huge performance gains.
2011-12-12 23:19:14 +01:00
< br >
2011-12-12 07:25:42 +01:00
< a href = "http://venturebeat.com/2011/08/16/linkedin-node/" > Kiran Prasad< / a >
2011-12-12 23:19:14 +01:00
< br >
2011-12-12 07:25:42 +01:00
< span > Director of Engineering, Mobile< / span > < / p > < / li >
2012-02-13 23:47:50 +01:00
< li class = "yahoo" > < img src = "http://nodejs.org/images/yahoo-logo.png" >
2011-12-12 07:25:42 +01:00
< p > Node.js is the execution core of Manhattan. Allowing
developers to build one code base using one language – that is
the nirvana for developers.
2011-12-12 23:19:14 +01:00
< br >
2011-12-12 07:25:42 +01:00
< a href = "http://developer.yahoo.com/blogs/ydn/posts/2011/11/yahoo-announces-cocktails-%E2%80%93-shaken-not-stirred/" > Renaud Waldura< / a >
2011-12-12 23:19:14 +01:00
< br >
2011-12-12 07:25:42 +01:00
< span > Sr. Product Manger, Cocktail< / span > < / p > < / li >
< / ul >
< / div >
2011-12-12 23:19:14 +01:00
2011-12-12 07:25:42 +01:00
< div id = "content" class = "clearfix" >
< div id = "column1" >
< h2 > An example: Webserver< / h2 >
< p > This simple web server written in Node responds with "Hello World" for every request.< / p >
< pre >
2010-06-24 02:40:51 +02:00
var http = require('http');
2009-10-09 14:18:10 +02:00
http.createServer(function (req, res) {
2010-06-11 08:19:43 +02:00
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
2012-02-18 01:40:26 +01:00
}).listen(1337, '127.0.0.1');
2011-12-12 07:25:42 +01:00
console.log('Server running at http://127.0.0.1:1337/');< / pre >
2009-08-26 22:03:19 +02:00
2011-12-12 07:25:42 +01:00
< p > To run the server, put the code into a file < code > example.js< / code > and execute it with the < code > node< / code > program:< / p >
< pre class = "sh_none" >
2009-10-16 13:46:16 +02:00
% node example.js
2011-04-23 01:01:34 +02:00
Server running at http://127.0.0.1:1337/< / pre >
2009-08-26 22:03:19 +02:00
2011-12-12 07:25:42 +01:00
< p > Here is an example of a simple TCP server which listens on port 1337 and echoes whatever you send it:< / p >
2009-10-16 13:46:16 +02:00
2011-12-12 07:25:42 +01:00
< pre >
2010-06-09 08:25:55 +02:00
var net = require('net');
2011-02-23 21:56:50 +01:00
var server = net.createServer(function (socket) {
2012-02-18 01:40:26 +01:00
socket.write('Echo server\r\n');
2011-02-23 21:56:50 +01:00
socket.pipe(socket);
2011-04-23 01:01:34 +02:00
});
2011-02-23 21:56:50 +01:00
2012-02-18 01:40:26 +01:00
server.listen(1337, '127.0.0.1');< / pre >
2011-12-12 07:25:42 +01:00
<!-- <p>Ready to dig in? <a href="">Download the latest version</a> of node.js or learn how other organizations are <a href="">using the technology</a>.</p> -->
< / div >
< div id = "column2" >
< h2 > Featured< / h2 >
2012-02-13 23:47:50 +01:00
< a href = "http://www.youtube.com/watch?v=jo_B4LTHi3I" > < img src = "http://nodejs.org/images/ryan-speaker.jpg" > < / a >
2011-12-12 07:25:42 +01:00
A guided introduction to Node
< h2 > Explore Node.js< / h2 >
< ul id = "explore" >
2011-12-12 23:34:37 +01:00
< li > < a href = "about/" class = "explore" > About< / a > < br > < span > Technical overview< / span > < / li >
< li > < a href = "http://search.npmjs.org/" class = "explore" > npm Registry< / a > < br > < span > Modules, resources and more< / span > < / li >
2012-03-16 16:19:18 +01:00
< li > < a href = "http://nodejs.org/api/" class = "explore" > Documentation< / a > < br > < span > API Specifications< / span > < / li >
2011-12-12 23:34:37 +01:00
< li > < a href = "http://blog.nodejs.org" class = "explore" > Node.js Blog< / a > < br > < span > Insight, perspective and events< / span > < / li >
< li > < a href = "community/" class = "explore" > Community< / a > < br > < span > Mailing lists, blogs, and more< / span > < / li >
< li > < a href = "logos/" class = "explore" > Logos< / a > < br > < span > Logo and desktop background< / span > < / li >
2011-12-12 23:40:00 +01:00
< li > < a href = "http://jobs.nodejs.org/" class = "explore" > Jobs< / a > < br > < ol class = "jobs" > <!-- JOBS --> <!-- JOBS --> < / ol > < / li >
2011-12-12 07:25:42 +01:00
< / ul >
2009-06-05 12:23:51 +02:00
< / div >
2011-12-12 07:25:42 +01:00
< / div >
2011-12-12 23:19:14 +01:00
2011-12-12 07:25:42 +01:00
< div id = "footer" >
2012-01-22 05:02:16 +01:00
< ul class = "clearfix" >
< li > < a href = "/" > Node.js< / a > < / li >
2012-08-13 17:43:26 +02:00
< li > < a href = "/download/" > Download< / a > < / li >
2012-01-22 05:02:16 +01:00
< li > < a href = "/about/" > About< / a > < / li >
< li > < a href = "http://search.npmjs.org/" > npm Registry< / a > < / li >
2012-03-16 16:19:18 +01:00
< li > < a href = "http://nodejs.org/api/" > Docs< / a > < / li >
2012-01-22 05:02:16 +01:00
< li > < a href = "http://blog.nodejs.org" > Blog< / a > < / li >
< li > < a href = "/community/" > Community< / a > < / li >
< li > < a href = "/logos/" > Logos< / a > < / li >
< li > < a href = "http://jobs.nodejs.org/" > Jobs< / a > < / li >
2012-01-23 11:12:20 +01:00
<!-- <li><a hrfe="http://twitter.com/nodejs" class="twitter">@nodejs</a></li> -->
2012-01-22 05:02:16 +01:00
< / ul >
2012-06-23 11:31:26 +02:00
< p > Copyright < a href = "http://joyent.com/" > Joyent, Inc< / a > , Node.js is a < a href = "/trademark-policy.pdf" > trademark< / a > of Joyent, Inc. View < a href = "https://raw.github.com/joyent/node/__VERSION__/LICENSE" > license< / a > .< / p >
2010-12-01 08:00:32 +01:00
< / div >
2010-11-10 00:43:52 +01:00
2012-01-22 05:02:16 +01:00
2011-12-20 05:57:45 +01:00
< script src = "sh_main.js" > < / script >
< script src = "sh_javascript.min.js" > < / script >
< script > highlight ( undefined , undefined , 'pre' ) ; < / script >
2011-12-12 07:25:42 +01:00
2011-12-20 05:57:45 +01:00
< script >
2012-06-23 11:31:26 +02:00
window._gaq = [['_setAccount', 'UA-10874194-2'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = '//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
}(document, 'script'));
2012-08-23 00:11:26 +02:00
;(function(d,n) {
var os = n.platform.match(/(Win|Mac|Linux)/);
var x = n.userAgent.match(/x86_64|Win64|WOW64/) ||
n.cpuClass === 'x64' ? 'x64' : 'x86';
var base = 'http://nodejs.org/dist/__VERSION__/';
var href = 'node-__VERSION__.tar.gz';
var db = d.getElementById('downloadbutton');
var d2;
switch (os & & os[1]) {
case 'Mac':
href = 'node-__VERSION__.pkg';
break;
case 'Win':
href = 'node-__VERSION__-' + x + '.msi';
if (x === 'x64') href = 'x64/' + href;
break;
// TODO uncomment when we have these
// case 'Linux':
// // two buttons: .deb and .rpm
// href = 'node-__VERSION__-' + x + '.rpm';
// var d2 = document.createElement('a');
// d2.href = base + 'node-__VERSION__-' + x + '.deb';
// d2.className = 'button downloadbutton';
// d2.innerHTML = 'INSTALL .deb';
// db.innerHTML = 'INSTALL .rpm';
// db.parentNode.insertBefore(d2, db);
// break;
}
db.href = base + href;
// if there's one download option, then download it at #download
if (location.hash === '#download' & & !d2)
location.replace(b.href);
})(document,navigator);
2011-12-12 23:19:14 +01:00
< / script >
2012-08-23 00:11:26 +02:00
< / body >
2009-05-13 17:46:00 +02:00
< / html >