node package manager

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


Proxies javascript objects that are persisted in a database (e.g. MongoDB)


A node.js wrapper class to create persistent javascript objects, relying on harmony proxies.

npm install persistent-harmony
var ph = require("persistent-harmony");
new ph.MongoPH({/* default mongodb args */}, function(mongoPH){
	var mymap = mongoPH.wrap("mymap", {/* empty object instance */}, function(){
		console.log("mymap is now synchronized to its mongodb collection");
		mymap.first = "coucou"; // => stored as {_id:"first", v:"coucou"} in mongodb
		console.log("myapp", mymap);
node --harmony-proxies tests.js