Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
is-valid-us-zip
Advanced tools
A small library for checking if a US 5 Digit ZIP code is real.
npm install is-valid-us-zip
const isValidUSZip = require('is-valid-us-zip');
isValidUSZip("75000") // false
The function will return false for a value that is not a stirng. As you can't reference some zip codes as a number, due to the starting with a 0.
Download a copy of the AREADIST_ZIP5.TXT
file from USPS and pipe it into the tree builder script.
$ cat AREADIST_ZIP5.TXT | node build/make-tree.js
FAQs
A small library for checking if a US 5 Digit ZIP code is real
We found that is-valid-us-zip 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.