Node implementation of mithril-storage.
You can install this package using npm.
npm install node-mithril-storage
var mx = require('node-mithril-storage');
var storage = mx.storage();
// same as
// var storage = mx.storage(mx.DEFAULT_STORAGE_NAME, mx.DEFAULT_STORAGE);
// Add the object to storage
storage.set('test', {message: 'TEST'});
// Get the object from storage.
var test = storage.get('test');
// Remove the key from storage
storage.remove('test');
mx.LOCAL_STORAGE // [DEFAULT_STORAGE]
mx.IN_MEMORY_STORAGE