IP Validator Plugin for Composed Validations Library
The Official IP Validator. Supporting IPv4 address, IPv6 address, IPv4-mapped IPv6 address
Installation
npm install cv-ip
var validations = ;var ipValidator = validations; // The accepts option is optional.// If you don't pass, will accept ipv4 and ipv6 ips var validator = validator // will return 127.0.0.1 validator // false (ValidatorError with the message: is not a valid ip address)
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D