Skip to content

yetzt/node-obj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

persistant objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published