From Funtoo
Jump to: navigation, search



We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Node.js is an event driven, non-blocking javascript library that can act as a webserver.


# emerge net-libs/nodejs


Node.js installs a package manager called npm. there are over 120,000 javascript libraries for node to work with. Search through the external resource links on this page to find something you like to install.

For our example we will fetch a website benchmark tool.

# npm install -g

We'll set it loose on funtoo, 10 pages will be analyzed.

# cd / && -m 10 -u

To see the result of benchmarking, point a browser @ (note that your date, and time will probably differ, however the script will tell which directory to look at.) /sitespeed-result/

As of 05:07, April 18, 2015 (UTC) the suggested method to serve node.js is through tengine + passenger. see Package:Tengine

External Resources