npm.io
1.0.6 • Published 9 years ago

list-ips

Licence
MIT
Version
1.0.6
Deps
0
Vulns
0
Weekly
0
Stars
2

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

Keywords