IMM.js
Immutable data collections built 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
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
Development
To generate documentation verb
needs to be installed:
npm i -g verb-cli
Testing
npm install
npm test
Build
This will lint, test, minify and create documentation
gulp
Related projects