Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    node-document-validatorpublic

    NODE-DOCUMENT-VALIDATOR Build Status

    Validator adapter interface for node-document ODM for Node.js.

    About

    Unified interface for validating data based on a custom JSON Schema.

    Adapters

    API

    #validate

    • (data, schema, [callback(err, res)])

      validator.validate({foo: 'bar'}, {foo: {type: 'string', required: true}}, function(err, res) {
        // console.log(arguments); 
      });

    Installation

      $ npm install node-document-validator

    Usage

    For details; see node-document.

    Test

    Local tests:

      $ make test

    License

    Released under the MIT license.

    Copyright (c) Jonas Grimfelt

    Keywords

    none

    install

    npm i node-document-validator

    Downloadslast 7 days

    0

    version

    0.1.0-pre4

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar