IMM.js
Immutable data collections build on top of seamless-immutable
Seemless-immutable.js is great, but it doesn't have an API that feels right for CRUD applications.
Imm wraps it to provide a convenient API. For example:
collection.add(record);
collection.get(id);
collection.update(record);
...
Install
Using NPM
npm install imm
Browser global
Download dist/imm.js
or dist/imm.min.js
This library requires seamless-immutable to be loaded.
API
Please see API documentation here
Things to note
- Methods that return collections (e.g. filter) return an instance of Imm
- Methods that return one record (e.g. get, find), return a plain JS object
Test
npm install
npm test
Build
This will lint, test, minify and create documentation
gulp
Related projects