validates

1.0.1 • Public • Published

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('liaowei08@gmail.com')  // true

Package Sidebar

Install

npm i validates

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • douzi