1.0.0 • Published 5 years ago

opj v1.0.0

Weekly downloads
4
License
Unlicense
Repository
github
Last release
5 years ago

opj

persistant objects, that are loaded from and on change saved back to a file.

usage

var opj = require("opj");

var data = opj("/save/file.json", { // path to savefile
	init: {},      // initial object, if no save file exists
	debounce: 100, // time in ms between saves to debounce multiple changes
});

data.words = [];
data.words.push("hello");
data.words.push("world");

console.log(data);