ip-filter
Validates given IPs (IPv4 and IPv6) using [micromatch][] - glob patterns, RegExp, string or array of globs. If match returns the IP, otherwise null.
ip-regex
Regular expression for matching IP addresses (IPv4 & IPv6)
ipaddr.js
A library for manipulating IPv4 and IPv6 addresses in JavaScript.