list-ips

Generate lists of IPs using wildcards and ranges

Usage no npm install needed!

<script type="module">
  import listIps from 'https://cdn.skypack.dev/list-ips';
</script>

README

list-ips

Generate simple arrays of valid ipv4 ips for whatever reason.

NPM

Usage:

var listIps = require('list-ips');

// Simple range
listIps.list('192.0.0.0-10') // [192.0.0.0, 192.0.0.1, ..., 192.0.0.10]

// Wildcards
listIps.list('192.0.0.*') // [192.0.0.0, 192.0.0.1, ..., 192.0.0.255]

// Combine
listIps.list('192.0.1-2.*') // [192.0.1.0, ..., 192.0.1.255, 192.0.2.0, ..., 192.0.2.255]

Contribution:

Please Do.

License:

The MIT License, Check out the LICENSE file