Skip to content

doteco/commons-validator-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commons-validator-js

NPM version Bower version Downloads

JavaScript port of Apache Commons Validator.

Usage - npm

Install the library with npm install commons-validator-js

var EmailValidator = require('commons-validator-js').EmailValidator;

var validator = new EmailValidator();
validator.isValid('[email protected]'); //=> true
validator.isValid('[email protected]'); //=> false (can your validator do this?)

Usage - bower

Install the library: bower install commons-validator-js. Add a reference: 'bower_components/commons-validator-js/dist/commons-validator-js.js'

Then use the global constructor: var EmailValidator = CommonsValidator.EmailValidator; and proceed as shown in the npm usage example above.

About

JavaScript port of Apache Commons Validator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%