Skip to content

This is the Official URL Validator Plugin for the Composed Validations Library.

License

Notifications You must be signed in to change notification settings

composed-validations/cv-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Validator Plugin for Composed Validations Library

Build Status

This is the Official URL Validator Plugin for the Composed Validations Library.

Installation

npm install cv-url

How to Use

var validations  = require('composed-validations');
var urlValidator = require('cv-url')(validations);

urlValidator.test("http://www.RegExr.com"); // will return http://www.RegExr.com
urlValidator.test('\\http@://google.com'); // false (will throw an error with the error message: is not a valid url)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License

About

This is the Official URL Validator Plugin for the Composed Validations Library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published