persistable-object

0.1.1 • Public • Published

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();

Readme

Keywords

Package Sidebar

Install

npm i persistable-object

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • aleksandarfaraj