JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8475
  • Score
    100M100P100Q130925F
  • License ISC

Simple utility to convert either CIDR notation or two IP addresses to an array of the range of IP addresses

Package Exports

  • get-ip-range

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-ip-range) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

get-ip-range

Build StatusCoverage StatusISC License

Installation

npm install --save get-ip-range

Usage

For CIDR notation:

const getIPRange = require('get-ip-range');

getIPRange('192.168.1.134/29');
// Returns an array of 6 IP addresses

For two IP addresses:

const getIPRange = require('get-ip-range');

getIPRange('192.168.1.129', '192.168.1.134');
// Returns an array of 6 IP addresses