Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@laverdet/beaugunderson-ip-address
Advanced tools
A library for parsing IPv4 and IPv6 IP addresses in node and the browser.
ip-address
is a library for validating and manipulating IPv4 and IPv6
addresses in JavaScript.
ip-address
was rewritten in TypeScript for version 7. If you were using
version 6 you'll need to make these changes to upgrade:
isValid()
, which has been removed, you'll need to use a
try
/catch
if you're accepting unknown input. This made the TypeScript
types substantially easier as well as allowed the use of an AddressError
class which will contain a parseMessage
if an error occurred in the parsing
step.error
, parseError
, and valid
attributes you'll
need to use the message
and parseMessage
of the thrown AddressError
.Documentation is available at ip-address.js.org.
import { Address6 } from 'ip-address';
const address = new Address6('2001:0:ce49:7601:e866:efff:62c3:fffe');
const teredo = address.inspectTeredo();
teredo.client4; // '157.60.0.1'
Address6.fromURL(url)
::ffff:192.168.0.1
)FAQs
A library for parsing IPv4 and IPv6 IP addresses in node and the browser.
The npm package @laverdet/beaugunderson-ip-address receives a total of 40 weekly downloads. As such, @laverdet/beaugunderson-ip-address popularity was classified as not popular.
We found that @laverdet/beaugunderson-ip-address 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.