ipv4-ipv6-format-check

1.0.4 • Public • Published

ipv4-ipv6-format-check

A Node.js package that checks whether a given string is in ipv4/ipv6 format.

Usage

First, install the package using npm:

npm install ipv4-ipv6-format-check --save

Then, require the package and use it like so:

var checkFormat = require('ipv4-ipv6-format-check');

To validate the IPv4 format:

checkFormat.checkIPFour('10.256.133.1')

To validate the IPv6 format:

checkFormat.checkIPSix('0000:0000:0000:0000:1010:0001:0001:00001')

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    3
  • 1.0.3
    0
  • 1.0.2
    0

Package Sidebar

Install

npm i ipv4-ipv6-format-check

Weekly Downloads

3

Version

1.0.4

License

MIT

Last publish

Collaborators

  • suchendra