1.0.4 • Published 3 years ago

@aciesai/fips-county-codes v1.0.4

Weekly downloads
-
License
SAX-PD
Repository
-
Last release
3 years ago

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

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago