Validates if a value is an IP address.
$ npm install validate.io-ip-address
For use in the browser, use browserify.
To use the module,
var validate = ;console;// Returns trueconsole;// Returns trueconsole;// Returns trueconsole;// Returns falseconsole;// Returns false
This method validates that the
value to be validated is a
string. For any other value type, the method returns
To run the example code from the top-level application directory,
$ node ./examples/index.js
$ make test
All new feature development should have corresponding unit tests to validate correct functionality.
This repository uses Istanbul as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:
$ make test-cov
Istanbul creates a
./reports/coverage directory. To access an HTML version of the report,
$ open reports/coverage/lcov-report/index.html
Copyright © 2014. Athan Reines.