Weekly downloads
Readme
Check if an IP is a bogon
npm install bogon
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
MIT
FAQs
Check if an IP is a bogon
The npm package bogon receives a total of 655 weekly downloads. As such, bogon popularity was classified as not popular.
We found that bogon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.