FLUTTER ECOSYSTEM

cidr

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

Latest version
1.0.0
30-day downloads
176
Likes
0
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

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
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add cidr

Categories

Related projects

No data available yet.