Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
get-ip-range
Advanced tools
Simple utility to convert either CIDR notation or two IP addresses to an array of the range of IP addresses
Simple utility to convert either CIDR notation or two IP addresses to an array of the range of IP addresses
npm install --save get-ip-range
For CIDR notation:
const getIPRange = require('get-ip-range');
getIPRange('192.168.1.134/29');
// Returns an object:
{
error: null,
value: array of 6 IP addresses
}
For two IP addresses:
const getIPRange = require('get-ip-range');
getIPRange('192.168.1.129', '192.168.1.134');
// Returns an object:
{
error: null,
value: array of 6 IP addresses
}
Error scenario
If the supplied IP address(es) are invalid, the response.error value will be an Error
FAQs
Simple utility to convert either CIDR notation or two IP addresses to an array of the range of IP addresses
The npm package get-ip-range receives a total of 3,191 weekly downloads. As such, get-ip-range popularity was classified as popular.
We found that get-ip-range 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 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.