Socket
Book a DemoInstallSign in
Socket

canonical-reducer-composition-validator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canonical-reducer-composition-validator

Library to validate data compliance with the Canonical Reducer Composition design pattern.

latest
Source
npmnpm
Version
1.3.1
Version published
Maintainers
1
Created
Source

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

Keywords

canonical

FAQs

Package last updated on 08 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts