New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aciesai/fips-county-codes

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aciesai/fips-county-codes

A lookup tool for FIPS county codes

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-23.08%
Maintainers
3
Weekly downloads
 
Created
Source

A tool for looking up FIPS county codes.

Example

const fips = require('fips-county-codes');

fips.get({
  "state": "AL",
  "county": "Chambers"
});

// 017

fips.get({
  "fips": "017"
});

// {
//   "state": "AL",
//   "county": "Chambers"
// }

Options

OptionDescriptiontype
fipsA three digit fips codestring
stateTwo letter state abbrviationstring
countyCounty namestring

Source

U.S. Census Bureau (2010). Here is the CSV data for all of the United States.

Data manipulation

The only change I made to the dataset was to include a header row in the CSV file; I use csv2json to convert dataset to JSON. I did not attempt to change types. All fields are of type String.

Field descriptions

Field NameField DescriptionExample
stateState Postal CodeFL
statefpState FIPS Code12
countyfpCounty FIPS Code011
countynameCounty nameBroward County
classfpFIPS Class CodeH1

FIPS Class Codes

  • H1: identifies an active county or statistically equivalent entity that does not qualify under subclass C7 or H6.
  • H4: identifies a legally defined inactive or nonfunctioning county or statistically equivalent entity that does not qualify under subclass H6.
  • H5: identifies census areas in Alaska, a statistical county equivalent entity.
  • H6: identifies a county or statistically equivalent entity that is areally coextensive or governmentally consolidated with an incorporated place, part of an incorporated place, or a consolidated city.
  • C7: identifies an incorporated place that is an independent city; that is, it also serves as a county equivalent because it is not part of any county, and a minor civil division (MCD) equivalent because it is not part of any MCD.

Browser support

All modern browsers. For IE11 support, you must polyfill Array.find().

Tests

npm test

License

Sax Public Domain Notice

Keywords

FAQs

Package last updated on 11 Nov 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc