0.1.1 • Published 9 years ago

persistable-object v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

PersistableObject Build Status

A JS object which you can persist easily.

Installation:

PersistableObject is available through npm

npm install persistable-object

Usage:

PersistableObject provides you an object which can be persisted.

Example:

var persistableObject = require('persistable-object');

// load yourpo.json
var po = persistableObject("yourpo.json");

// use po as any other object.
po.hello = "world";
po.obj   = {a:{b:1},c:{d:{e:5}}};
po.int   = 5;

//persists the object to yourpo.json
po.save();