Code Monkey home page Code Monkey logo

cerberus's Introduction

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.

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

Examples

View examples in example.md

cerberus's People

Contributors

jithinqw avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Forkers

lgtm-migrator

cerberus's Issues

Real test coverage

Even though test coverage for this project is almost 94 percent, different options included in APIs
are not included in tests.

Need implementation for the following

We need implementation for the following

  • Is string Alphanumeric
  • Is String Base64
  • Is string IP Address
  • Is String ISBN
  • Is String ISSN
  • Is String JWT
  • Is String MAC Address
  • Is String MD5
  • Is String Postal code
  • Is String UUID

Move RegEx to JSON

Since we have implemented most of the things as a JSON file. It's a better way to move
regular expression defined in isPhoneNumber to a JSON file!

Remove Bank branch json file.

Should remove the IFSC code json file, since the list is not stable. Should only have an abstract way of validating IFSC code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.