is-ipv4-node

Check if String is an IPv4 address.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-ipv4-node
1.0.72 years ago9 years agoMinified + gzip package size for is-ipv4-node in KB

Readme

⚠️ This package is deprecated.
!is-ipv4-node Logologo
Check if String is an IPv4 address.
!NPM Package Versionnpm-package-version-badgenpm-package-url !NPM Package Downloadsnpm-package-downloads-badgenpm-package-url !NPM Package Licensenpm-package-license-badgenpm-package-license-url

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.