0.6.0 • Published 11 years ago
aronnax-store v0.6.0
store
A simple object hash store.
Stores any object you put in. Will use an id or classId property on the object as the key if
it exists, otherwise it will use es6 maps to store the object.
Use
var Store = require('aronnax-store');
var store = Object.create(Store);
store.put({s: 1});
store.put({id: 5});
var s = store.get({s: 1});
var t = store.get({id: 5});Develop
Written in es6.
Testing
To have the test script watch changed files and run continually use the testem command.
testemOr run the tests and exit
npm run testCompile down to es5, or as a browserify bundle.
npm run compile
npm run compile-bundle