cubby

simple storage

a super simple sync way to store javascript information not geared towards performance

$ npm install cubby
var Cubby = require('cubby'),
    cubby = new Cubby();
 
cubby.set('foo', 'bar');
 
console.log(cubby.get('foo'));

by default creating a cubby will result in a cubby.json file, but you can change this by providing a file path

var cubbyOne = new Cubby({file: 'something-one.json'}),
    cubbyTwo = new Cubby({file: 'something-two.json'});
cubby.setPath('one.two.three', true);
cubby.getPath('one.two.three');
cubby.getPath('one.two.three.four'); // returns undefined when value doesn't exist