Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
is-loopback-addr
Advanced tools
Check if a IP address is a loopback address
Various Internet Engineering Task Force (IETF) standards reserve the IPv4 address block 127.0.0.0/8
and the IPv6 address ::1/128
for this purpose. The most common IPv4 address used is 127.0.0.1. Commonly these loopback addresses are mapped to the hostnames, localhost or loopback. For more information check rfc5735 and rfc3513.
npm i is-loopback-addr
import { isLoopbackAddr } from 'is-loopback-addr'
console.log(isLoopbackAddr('127.0.0.1')) // true
console.log(isLoopbackAddr('192.168.0.1')) // false
console.log(isLoopbackAddr('22.2.0.1')) // false
console.log(isLoopbackAddr('::1')) // true
console.log(isLoopbackAddr('2001:8a0:7ac5:4201:3ac9:86ff:fe31:7095')) // false
Feel free to dive in! Open an issue or submit PRs.
MIT © Vasco Santos
FAQs
Check if a IP address is a loopback address
The npm package is-loopback-addr receives a total of 13,606 weekly downloads. As such, is-loopback-addr popularity was classified as popular.
We found that is-loopback-addr 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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.