Search packages, repositories and app categories

Package detailsv1.0.0

cidr

A small Dart library that parses CIDR notation and checks whether an IP address is inside a CIDR range. Supports IPv4 and IPv6.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
43
Likes
0
Pub points
150

Install package

flutter pub add cidr

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The cidr package is a lightweight Dart library for parsing CIDR (Classless Inter-Domain Routing) notation and determining if an IP address falls within a specified CIDR range. It supports both IPv4 and IPv6 addresses, making it suitable for network-related applications that require IP range validation. The library provides simple, efficient methods to work with CIDR blocks without external dependencies. Ideal for backend services, network tools, or firewall logic in Flutter apps.

Use cases

  • IP range validation
  • Network access control
  • Firewall rule checking
  • API request filtering by IP
  • Server-side IP tracking

Key features

  • Supports IPv4 and IPv6
  • Simple CIDR parsing
  • Efficient IP-in-range checks
  • Lightweight and dependency-free
  • Cross-platform compatibility

Suitable for

  • Network utilities
  • Security features
  • Backend integration
  • IP-based routing
  • DevOps tools

Considerations

  • Does not handle dynamic CIDR generation
  • Limited to static range checks
  • No support for CIDR aggregation or subnetting
  • Requires valid input format
  • No built-in logging or error reporting

Categories

Projects using this package

No data available yet.