Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
martian-cidr
Advanced tools
Check if an IP address is from reserved subnet.
Certain IP subnets are reserved for special-use by Internet Assigned Numbers Authority (IANA). A Martian packet is an IP packet which specifies a source or destination address from such subnet. If seen on the public internet, these packets cannot actually originate as claimed, or be delivered.
You can check if some packet is a Martian packet like that:
import isMartianIP from 'martian-cidr'
console.log(isMartianIP('10.0.0.1')) // true
Version 2.0.0 introduces a breaking change: the support for CommonJS is removed, minimal Node.js version becomes 14.
npm install --save martian-cidr
npm run test
FAQs
Check if an IP address is from reserved subnet
The npm package martian-cidr receives a total of 47 weekly downloads. As such, martian-cidr popularity was classified as not popular.
We found that martian-cidr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.