Hi folks, We've just released the first preview o...
# feed
b
Hi folks, We've just released the first preview of CIDRE, a 100% pure KMP, zero-dependency IPv4/IPv6 library supporting CIDR math! While the juicy bits like subnetting, supernetting, splitting and merging, and overlap checks did not make it into this first release, it already comes with useful fundamentals: 1. Data model: a. IP addresses, networks, netmasks and prefixes b. Type-safety: Never mix up IPv6 and IPv4! c. Generic properties (
isLoopback
,
isLinkLocal
, etc…) d. IPv4-specific properties (`isPrivate`/`isPublic``) e. IPv6-specific properties (
isGlobalUnicast
,
isIpV4Mapped
, and many more) 2. Parser 3. Encoder (including IPv6 canonicalisation) 4. Masking 5. Containment Checks 6. Various
ByteArray
-level OPs We're starting to dogfood this library in our projects but any external feedback is very much welcome – especially since the API is still malleable in this early state!
❤️ 9
K 4