ip-instruments

0.0.15 • Public • Published

ip-instruments

All Contributors Build Status

A library for interacting with IPv4

const { IPInstruments } = require("ip-instruments");

const IPInstruments = new IPInstruments();

console.log(IPInstruments.isPrivate("192.168.0.1")); // --> true
console.log(IPInstruments.isLocalhost("127.0.0.1")); // --> true
console.log(IPInstruments.generateRange("192.168.0.0", "192.168.0.4")); // ["192.168.0.0", "192.168.0.1", "192.168.0.2", "192.168.0.3", "192.168.0.4"]

Contributors

Thanks goes to these wonderful people (emoji key):

0xflotus
0xflotus

💻 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

Readme

Keywords

none

Package Sidebar

Install

npm i ip-instruments

Weekly Downloads

9

Version

0.0.15

License

MIT

Unpacked Size

5.58 kB

Total Files

4

Last publish

Collaborators

  • 0xflotus