Catalog npm
PACKAGE EXPLORERView in registry

538-polls

npm

Fetch polling data from 538

electionpoll
Versions collected1
Direct dependencies2From release 0.1.0
Last observed20 Oct, 20:25 UTC

README

Current package documentation

538-polls

This is a small esm library to get polling data from 538. Currently it copies the api structure and only changes types for convenience (e.g. parsing dates from date strings)

Usage

import { fetchPolls } from "538-polls"

let polls = await fetchPolls("senate", 2022, "nevada")
let avg = await fetchPollingAverage("senate", 2022, "nevada")

Poll Types:

typecycleentity
approval
favorability
❌institution
person
generic-ballot✔❌
(always dem vs rep)
governor
house
senate
✔state
governor-recall❌state
president-general
president-primary-d
president-primary-r
✔state
"national"

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.0Registry latest4 Mar 20242

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
mola19/538-polls

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:25 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d6ec420c97a6227770d98ab7c130c8ea305127224f26213a9216895e489d0044