项目作者: Jithinqw

项目描述 :
JavaScript validations made easy
高级语言: JavaScript
项目地址: git://github.com/Jithinqw/Cerberus.git
创建时间: 2019-06-16T11:41:33Z
项目社区:https://github.com/Jithinqw/Cerberus

开源协议:GNU General Public License v3.0

下载


Cerberus

Build Status
npm
GitHub
npm collaborators

Javascript validations made easy.

Vision

Unlike other validation packages the vision of this package is to reduce the number of lines written for validations and other information to be retrieved from data.

Requirements

Cerebrus runs on bare NodeJS(v6.0) or later. Cerebrus tests configured to run on Nodejs v6.0 - v12.0.
Check travis CI build for test runs.

Installation

Install this package using npm i cerberus-validator.

The library can also be installed through bower

bower install cerberus-validator

Testing

Cereberus uses assert library from NodeJS and use mocha for test runners.

For running tests install mocha by using npm i mocha -g and run mocha from root of the project.

TODO

  • Move to Promise based library.

Using it on your browser

You can use cerberus in your browser by simply importing it.

  1. <script src="bundle/main.js"></script>

Examples

View examples in example.md