Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-ipv4-node

agatt103MITdeprecated1.0.7

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

Check if String is an IPv4 address.

validate, ip, ipv4, address, string, node

readme

⚠️ This package is deprecated.

is-ipv4-node Logo

Check if String is an IPv4 address.

NPM Package Version NPM Package Downloads NPM Package License

Installation

npm install is-ipv4-node

Usage Example

var isIPv4 = require('is-ipv4-node');

console.log(isIPv4('46.19.37.108'));
console.log(isIPv4('Hello World!'));

true
false

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

License

Distributed under the MIT License.