Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
us-zcta-counties
Advanced tools
List of all US ZipCode Tabulation Areas and the counties that correspond to them.
Data sources:
ZipCode Tabulation Areas are mostly sorta similar to zip codes, but they're different. See http://www.census.gov/geo/reference/zctas.html for full details. For the purposes of doing rough-and-ready associations between zipcodes and counties, ZCTAs are mostly sort-of correct but not entirely. This dataset will not include all valid zip codes, and addresses with a given zip code may actually reside in a different county from the one named by their ZCTA. There is no simple mapping between zipcodes and counties, you need a full address to do that.
Other zip-code related data:
Other relevant NPM modules:
Install:
npm install us-zcta-counties
zcta.find(opts)
: Search by state, county, or zip.var zcta = require("us-zcta-counties");
zcta.find({state: "HI"});
// returns:
{
"Hawaii County": ["96704" "96710" "96719" "96720" "96725" "96726" "96727" "96728" "96737" "96738" "96740" "96743" "96749" "96750" "96755" "96760" "96764" "96771" "96772" "96773" "96774" "96776" "96777" "96778" "96780" "96781" "96783" "96785"],
"Honolulu County": [ "96701" "96706" "96707" "96712" "96717" "96730" "96731" "96734" "96744" "96759" "96762" "96782" "96786" "96789" "96791" "96792" "96795" "96797" "96813" "96814" "96815" "96816" "96817" "96818" "96819" "96821" "96822" "96825" "96826" "96850" "96853" "96857" "96859" "96860" "96863" ]
"Kalawao County": [ "96742" ]
"Kauai County": [ "96703" "96705" "96714" "96716" "96722" "96741" "96746" "96747" "96751" "96752" "96754" "96756" "96765" "96766" "96769" "96796" ]
"Maui County": [ "96708" "96713" "96729" "96732" "96748" "96753" "96757" "96761" "96763" "96768" "96770" "96779" "96790" "96793" ]
}
zcta.find({zip: "96742"})
// {state: "HI", county: "Kalawao County"}
zcta.getStates()
: List statesvar zcta = require("us-zcta-counties");
zcta.getStates();
// returns:
['AK', 'AL', 'AR', 'AZ' ... ]
zcta.getCountiesByState(state)
: List counties by statevar zcta = require("us-zcta-counties");
zcta.getCountiesByState("HI")
// returns
['Hawaii County', 'Honolulu County', 'Kalawao County' ... ]
FAQs
Mappings of us states to counties and ZipCode Tabulation Areas
We found that us-zcta-counties 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
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.