command-mapper-validator
v0.1.2
Published
Validates command-mapping JSON files or objects.
Downloads
7
Readme
command-mapper-validator
Validates mapping objects or mapping JSON files. For more information see command-mapper.
Install
$ npm install command-mapper-validator
Usage
The module exports a single function that validates mapping option objects. It returns an array of errors, if any.
var validate = require("command-mapper-validator"),
mappings = require("my-mapping.json");
validate(mappings).forEach(function(error) {
console.log(error);
});