Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 15c6c0eecc
Fetching contributors…

Cannot retrieve contributors at this time

168 lines (147 sloc) 7.465 kB
<!doctype html>
<html lang="en">
<meta charset="utf-8">
ul {
padding: 0;
margin: 0;
<link type="image/x-icon" rel="icon" href="favicon.ico">
<link type="image/x-icon" rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="pipe.css">
<link rel="stylesheet" href="sh_vim-dark.css">
<link rel="alternate"
title="node blog"
<body id="front">
<div id="intro">
<img id="logo" src="" alt="node.js">
<p>Node.js is a platform built on <a
href="">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>
<a href="download/" class="button" id="downloadbutton">Download</a>
<a href="api/" class="button" id="docsbutton">Docs</a>
<p class="version">__VERSION__</p>
<a href=""><img class="forkme" src="images/forkme.png" alt="Fork me on GitHub"></a>
<div id="quotes" class="clearfix">
<h2>Node.js in the Industry</h2>
<li class="microsoft"><img src="">
<p>Node gives Azure users the first end-to-end JavaScript
experience for the development of a whole new class of real-time
<a href="">Claudio Caldato</a>
<span>Principal Program Manager, Microsoft Open Technologies, Inc.</span></p>
<li class="ebay"><img src="">
<p>Node’s evented I/O model freed us from worrying about locking
and concurrency issues that are common with multithreaded async
<a href="">Subbu Allamarju</a>
<span>Principal Member, Technical Staff</span></p></li>
<li class="linkedin"><img src="">
<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.
<a href="">Kiran Prasad</a>
<span>Director of Engineering, Mobile</span></p></li>
<li class="yahoo"><img src="">
<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.
<a href="">Renaud Waldura</a>
<span>Sr. Product Manger, Cocktail</span></p></li>
<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>
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '');
console.log('Server running at');</pre>
<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">
% node example.js
Server running at</pre>
<p>Here is an example of a simple TCP server which listens on port 1337 and echoes whatever you send it:</p>
var net = require('net');
var server = net.createServer(function (socket) {
socket.write('Echo server\r\n');
server.listen(1337, '');</pre>
<!-- <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 id="column2">
<a href=""><img src=""></a>
A guided introduction to Node
<h2>Explore Node.js</h2>
<ul id="explore">
<li><a href="about/" class="explore">About</a><br><span>Technical overview</span></li>
<li><a href="" class="explore">npm Registry</a><br><span>Modules, resources and more</span></li>
<li><a href="" class="explore">Documentation</a><br><span>API Specifications</span></li>
<li><a href="" 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>
<li><a href="" class="explore">Jobs</a><br><ol class="jobs"><!-- JOBS --><!-- JOBS --></ol></li>
<div id="footer">
<ul class="clearfix">
<li><a href="/">Node.js</a></li>
<li><a href="/download/">Download</a></li>
<li><a href="/about/">About</a></li>
<li><a href="">npm Registry</a></li>
<li><a href="">Docs</a></li>
<li><a href="">Blog</a></li>
<li><a href="/community/">Community</a></li>
<li><a href="/logos/">Logos</a></li>
<li><a href="">Jobs</a></li>
<!-- <li><a hrfe="" class="twitter">@nodejs</a></li> -->
<p>Copyright <a href="">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="">license</a>.</p>
<script src="sh_main.js"></script>
<script src="sh_javascript.min.js"></script>
<script>highlight(undefined, undefined, 'pre');</script>
<script type="text/javascript">
if (location.hash === '#download') {
location.href = 'download/';
window._gaq = [['_setAccount', 'UA-10874194-2'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = '//';
s.parentNode.insertBefore(g, s);
}(document, 'script'));
Jump to Line
Something went wrong with that request. Please try again.