cidr-matcher

Fast CIDR matcher. Given an input IPv4 address, it checks if it's inside a set of IP ranges, expressed in CIDR notation.

ip-sub

A set of utilities for IP/prefix validation and subnet matching.

ipaddr.js

A library for manipulating IPv4 and IPv6 addresses in JavaScript.