@njam-data/nj-census-2020

2.0.0 • Public • Published

@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

  • County subdivision 2010/2020 comparison files in JSON and CSV

Source

https://biglocalnews.org / AP, based on PL_94 redistricting files from the Census

Package Sidebar

Install

npm i @njam-data/nj-census-2020

Weekly Downloads

214

Version

2.0.0

License

ISC

Unpacked Size

453 MB

Total Files

28

Last publish

Collaborators

  • sethvincent