Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-cidr

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-cidr - npm Package Compare versions

Comparing version 5.0.4 to 5.0.5

15

index.d.ts

@@ -15,7 +15,12 @@ /**

/**
Test if `input` is a IPv4 or IPv6 CIDR.
declare const _default: {
/**
Test if `input` is a IPv4 or IPv6 CIDR.
@returns Either `4`, `6` (indicating the IP version) or `0` if the string is not a CIDR.
*/
export default function isCidr(str: string): 6 | 4 | 0;
@returns Either `4`, `6` (indicating the IP version) or `0` if the string is not a CIDR.
*/
(str: string): 6 | 4 | 0,
v4: typeof v4;
v6: typeof v6;
};
export default _default;
{
"name": "is-cidr",
"version": "5.0.4",
"version": "5.0.5",
"description": "Check if a string is an IP address in CIDR notation",

@@ -5,0 +5,0 @@ "author": "silverwind <me@silverwind.io>",

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