validates
v1.0.1
Published
Match something through regexp or custom string, or validate it's true or false
Downloads
17
Maintainers
Readme
validates
Match something through regexp or custom string, or validate it's true or false
var validates = require('validates');
install
npm install validates --save
API
validates.isIP
validates.isIP('192.168.1.1') // true
validates.isUrl
validates.isUrl('http://ctrip.com/hotel') // true
validates.isEmial
validates.isEmial('[email protected]') // true