canonical-reducer-composition-validator
Library to validate data compliance with the Canonical Reducer Composition design pattern.
Last updated 9 years ago by gajus .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install canonical-reducer-composition-validator 
SYNC missed versions from official npm registry.

Canonical

Travis build status NPM version

Canonical Reducer Composition pattern component validator.

import {
    validateReducer,
    validateAction,
    validateActionName
} from 'canonical-reducer-composition-validator';

/**
 * @throws Error if input reducerDefinition is not compliant with the spec.
 */
validateReducer(reducerDefinition);

/**
 * @throws Error if action is not compliant with the spec.
 */
validateAction(action);

/**
 * @throws Error if action name is not compliant with the spec.
 */
validateActionName(actionName);

Using gulp

gulpfile.js is written using ES6. Therefore, it needs to be executed using babel-node.

babel-node ./node_modules/.bin/gulp build

Current Tags

  • 1.3.1                                ...           latest (9 years ago)

1 Versions

  • 1.3.1                                ...           9 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (10)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE