customs
Type validator for node.js and the browser through browserify.
Installation
With node installed:
npm i --save customs
Usage
var validate = ; ;// -> 'true' ;// -> 'false' ;// -> 'true'
Supported types
array
string
number
boolean
object
email
- any RegExp
Date-time types are not supported because there's too much variation. Just provide your own definition as a RegExp.