kinsta / is-ipv4-node

Check if String is an IPv4 address.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is-ipv4-node Logo

Check if String is an IPv4 address.

NPM Package Version NPM Package License NPM Package Downloads devDependencies Status

Node Version Travis CI Build Status Code Climate Status Code Climate Test Coverage Status Inch CI Documentation Coverage Status

NPM Package Statistics

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.

About

Check if String is an IPv4 address.

License:MIT License


Languages

Language:JavaScript 100.0%