node.js on OpenWRT

Introduction:
 Node.js is a platform built on Chrome's JavaScript runtime 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.
 
Firmware 
Backfire/Trunk/AARC/BB
Platform:
AR71xx
Cat:
Languange
 
Download  
Folder:
https://app.box.com/s/xzqeq6g4p1pgi6bwqidy
 
 
Install
copy file ke:
/tmp
 
Install
cd /tmp
opkg update
opkg install *.ipk
 

Help
[email protected]:/tmp# node --help
Usage: node [options] [ -e script | script.js ] [arguments]
       node debug script.js [arguments]

Options:
  -v, --version        print node's version
  -e, --eval script    evaluate script
  -p, --print          evaluate script and print result
  -i, --interactive    always enter the REPL even if stdin
                       does not appear to be a terminal
  --no-deprecation     silence deprecation warnings
  --trace-deprecation  show stack traces on deprecations
  --v8-options         print v8 command line options
  --max-stack-size=val set max v8 stack size (bytes)

Environment variables:
NODE_PATH              ':'-separated list of directories
                       prefixed to the module search path.
NODE_MODULE_CONTEXTS   Set to 1 to load modules in their own
                       global contexts.
NODE_DISABLE_COLORS    Set to 1 to disable colors in the REPL

Documentation can be found at http://nodejs.org/
[email protected]:/tmp#
 

 
Sample 
file: hello.js
isi:
// Call the console.log function.
console.log("Hello World");
 
exec:
[email protected]:/tmp# node hello.js

 
Library
Buat nambah Libs ada disini:
git clone git://github.com/creationix/node-router.git
git clone git://github.com/creationix/haml-js.git
git clone git://github.com/creationix/proto.git
 
Sumber:
http://openwrtindonesia.blogspot.com/2014/01/nodejs-openwrt.html