@njam-data/nj-census-2020
v2.0.0
Published
## Install
Downloads
846
Maintainers
Readme
@njam-data/nj-census-2020
Install
npm i @njam-data/nj-census-2020
Usage
2020 population totals
import { getPopulation } from '@njam-data/nj-census-2020'
const statePopulation = await getPopulation({ dataset: 'state' })
const countyPopulations = await getPopulation({ dataset: 'county' })
const countySubdivisionPopulations = await getPopulation({ dataset: 'county_subdivision' })
const placePopulations = await getPopulation({ dataset: 'place' })
const tractPopulations = await getPopulation({ dataset: 'tract' })
Census data
import { getData } from '@njam-data/nj-census-2020'
const stateData = await getData({ dataset: 'state' })
const countyData = await getData({ dataset: 'county' })
const countySubdivisionData = await getData({ dataset: 'county_subdivision' })
const placeData = await getData({ dataset: 'place' })
const tractData = await getData({ dataset: 'tract' })
Data
Source
https://biglocalnews.org / AP, based on PL_94 redistricting files from the Census