minimo
v0.0.6
Published
A Minimal Data Model Library
Downloads
4
Readme
minimo
A Minimal Data Model Library
Note that you shouldn't use this library, it's just something to use to experiment with creating Javascript libraries.
About
A JavaScript library by Tom Haggie.
See the project homepage.
Installation
Using Bower:
bower install minimo
Or grab the source (minified).
Usage
Basic usage is as follows:
var MM = require('minimo'),
Person = MM({
name: "",
age: 0,
likesCheese: true
}), // overriding default values at construction time
person = new Person({name: "Tom", age: 40});
console.log(person.name()); // writes out "Tom"
// fluent calling style
person
.name("Elliott")
.age(6);
console.log(person.name()); // writes out "Elliott"
For advanced usage, see the documentation.
Documentation
Start with docs/MAIN.md
.
There's not much by way of documentation best to check the tests to see what it does.
Contributing
We'll check out your contribution if you:
- Provide a comprehensive suite of tests for your fork.
- Have a clear and documented rationale for your changes.
- Package these up in a pull request.
We'll do our best to help you out with any contribution issues you may have.
License
MIT. See LICENSE.txt
in this directory.