immodel-base

0.1.2 • Public • Published

base

The basic set of plugins needed to bootstrap immodel into being a usable model. Works with browserify.

Usage

var model = require('immodel')
  .use(require('base'));

With custom plugins

var model = require('immodel')
  .use(require('base'), {validation: require('my-validations')});

The base validation package will be replaced with the 'my-validation' package. The things you can replace are

  • getter-setter
  • cast
  • methods
  • attrs
  • validation
  • required - Basic 'required validator' implementation
  • defaults - Default values
  • discriminators

Package Sidebar

Install

npm i immodel-base

Weekly Downloads

2

Version

0.1.2

License

MIT

Last publish

Collaborators

  • ashaffer88