New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

get-ip-range

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-ip-range - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

2

package.json
{
"name": "get-ip-range",
"version": "1.1.4",
"version": "1.1.5",
"description": "Simple utility to convert either CIDR notation or two IP addresses to an array of the range of IP addresses",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -20,3 +20,7 @@ # get-ip-range

getIPRange('192.168.1.134/29');
// Returns an array of 6 IP addresses
// Returns an object:
{
error: null,
value: array of 6 IP addresses
}
```

@@ -30,3 +34,11 @@

getIPRange('192.168.1.129', '192.168.1.134');
// Returns an array of 6 IP addresses
// Returns an object:
{
error: null,
value: array of 6 IP addresses
}
```
**Error scenario**
If the supplied IP address(es) are invalid, the response.error value will be an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc