User Tools

Site Tools


doc:howto:nodejs

nodejs

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.

Category: Language

Source

git https://github.com/brimstone/nodejs-openwrt

The developer appears to have abandoned this project:
"This repo formerly contained a hack of a package. This project was more to see if it could be possible and due to time, I haven't been able to complete it. There's many forks of the project on github, none of which I can recommend but maybe they'll be good enough for you."

Alternative

  • There is an alternative for cross-compiling Nodejs from source files that really works. Updated 2016.

Blog How to cross compile Nodejs for OpenWRT

Build

make menuconfig make package/node/compile

sample output binary:

Exercise:

create file: hello.js

console.log("Hello World");

execute: hello.js

root@OpenWrt:/tmp# node hello.js Hello World root@OpenWrt:/tmp#

Forum

doc/howto/nodejs.txt · Last modified: 2016/03/22 15:05 by luisfpinto