GitShow/sindresorhus/ip-regex
sindresorhus

ip-regex

Regular expression for matching IP addresses

by sindresorhus
Star on GitHubForknpm

JavaScript

198 stars30 forks9 contributorsQuiet · 2y agoSince 2014v5.0.0MIT

Meet the team

See all 9 on GitHub →
sindresorhus
sindresorhus29 contributions
Mottie
Mottie3 contributions
silverwind
silverwind2 contributions
coreyfarrell
coreyfarrell1 contribution
Piterden
Piterden1 contribution
BendingBender
BendingBender1 contribution
RichardLitt
RichardLitt1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript96.2%
TypeScript3.8%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
kullu208025
::1 address is not getting validatedClosedIssue

I am trying to validate ::1 with it and it's not validating it. It is a loopback address

kullu208025 · 9mo ago
silverwind
Zero-Padded IPv4sClosedIssue

Some tools like accept zero-padded IPv4s as valid. I think this module might consider accepting them too, even thought node's also considers them invalid: Some more opinions about it here.

silverwind · 2y ago
Mastercuber
Add IPv4 private IP range check optionMergedPR

Hi, this PR introduces a new option called . With this option, it is possible to check if a IPv4 address is in the private address range. For some applications - like starting a dev server only with a private IP address - it seems to be handy, to be able to check if an IP address is private or public. Some tests are included. This PR also extracts the IP octet as a constant, for making the regex's more readable.

Mastercuber · 2y ago
Structured data for AI agents

Repository: sindresorhus/ip-regex. Description: Regular expression for matching IP addresses Stars: 198, Forks: 30. Primary language: JavaScript. Languages: JavaScript (96.2%), TypeScript (3.8%). License: MIT. Latest release: v5.0.0 (4y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 85%. Top contributors: sindresorhus, Mottie, silverwind, coreyfarrell, Piterden, BendingBender, RichardLitt, Richienb, roryrjb.

·@ofershap

Replace github.com with gitshow.dev