node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


command line server + browserify


A quick command line bundler for prototyping front-end, multi-user, real-time aplications using browserify. As of the latest version of OPA, it uses browserify via watchify

npm install -g watchify famous

Now create a new app folder using famous:

famous -c myAppDirname
cd myAppDirname

famous -c creates everything you need to get started. There's an index.js, for your module, an entry.js for your pre-bundle, and a public folder for serving it all up.

Now write your module in index.js, and module.export it.


module.exports = function(x){return x + 4}

in your entry.js, do:

var fn = require('./')

then whip up the server with famous:

famous -e entry.js -o public/bundle.js

Your app will be served up at a your localhost, port 11001 or greater. You can edit the code, and b/c we're using watchify, your bundle will update automatically. You have to refresh the page tho. Note that all arguments to famous are passed to browserify, so you can use browserify to full effect.