@njam-data/nj-census-2020

## Install


Keywords
census, census 2020, nj, new jersey
License
ISC
Install
npm install @njam-data/nj-census-2020@1.1.0

Documentation

@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