SkillAgentSearch skills...

Bogon

Check if an IP is a bogon

Install / Use

/learn @mafintosh/Bogon
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

bogon

Check if an IP is a bogon

npm install bogon

https://ipinfo.io/bogon

Usage

const bogon = require('bogon')

console.log(bogon('192.168.0.1')) // true
console.log(bogon('8.8.8.8')) // false

As a utility it also exposes an isPrivate helper to detect if a bogon IP is a private IP address on a local network.

console.log(bogon.isPrivate('192.168.0.1')) // true
console.log(bogon('224.0.1.1')) // true
console.log(bogon.isPrivate('224.0.1.1')) // false

License

MIT

View on GitHub
GitHub Stars34
CategoryDevelopment
Updated2mo ago
Forks2

Languages

JavaScript

Security Score

90/100

Audited on Feb 1, 2026

No findings