simple_validator

0.0.2 • Public • Published

License npm version js-standard-style

Build Status Coverage Status Code Climate Issue Count

simple_validator

Installing

Add this library to your package.json configuration:

  "dependencies"{
    "simple_validator": "latest"
  }

Using it

  var simple_validator = require('simple_validator');
  var result = simple_validator.isObject({});

Available validations

See the available validations directly in the main module.

Examples can be found in the tests.

Developers

This project uses standard npm scripts. Current tasks include:

  • test: Runs Mocha tests.
  • jsdoc: Runs JSDoc3.
  • eslint: Runs ESLint.
  • coverage: Runs the tests and then Instanbul to get a coverage report.
  • build: This is the default task, and will run all the other tasks.

Running an npm task

To run a task, just do:

npm run build

Contributing

To contribute:

  • Make sure you open a concise and short pull request.
  • Throw in any needed unit tests to accomodate the new code or the changes involved.
  • Run npm run build and make sure everything is ok before submitting the pull request (make eslint happy).
  • Your code must comply with the Javascript Standard Style, ESLint should take care of that.

License

The source code is released under Apache 2 License.

Check LICENSE file for more information.

Package Sidebar

Install

npm i simple_validator

Weekly Downloads

5

Version

0.0.2

License

Apache-2.0

Last publish

Collaborators

  • marcelog