Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A list of US ZIP codes and their geolocations
I needed a list of ZIP codes, and the US Census Bureau had one.
Example: get the nearest zip to a geolocation
const geolib = require('geolib')
const usZips = require('us-zips')
const somewhere = {
lat: 33.1234,
lng: -88.4321
}
geolib.findNearest(somewhere, usZips) // { distance: 12834, key: '39341' }
If you want to get the nearest ZIP, just use blakek/geo2zip
.
Returns an object with keys for each ZIP code. The value of each key is an object with lat and lng properties.
const usZips = {
'12345': {
lat: 12.345678,
lng: -87.654321
},
...
}
With npm installed, run
$ npm install --save us-zips
Data for ZIP codes and their geolocations was generated from this file, which can be downloaded from the US Census Bureau map data page.
blakek/geo2zip
- get the nearest zip code from a geolocationmanuelbieh/Geolib
- easily do stuff with a list of geolocations (e.g. find nearest, get within radius)MIT
FAQs
A list of US ZIP codes and their geolocations
The npm package us-zips receives a total of 5,572 weekly downloads. As such, us-zips popularity was classified as popular.
We found that us-zips 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.