Current collected state Current
Observed since 20 Oct, 20:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
538-polls
Fetch polling data from 538
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)
import { fetchPolls } from "538-polls"
let polls = await fetchPolls("senate", 2022, "nevada")
let avg = await fetchPollingAverage("senate", 2022, "nevada")
| type | cycle | entity |
|---|---|---|
| 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" |
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^20.11.20 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5.3.3 | development |
Source distribution
{
"integrity": "sha512-P8DZLuEf+N6EyboX9GCsN82j6BtGGCGcarja+snOjC5pEmRF5HfEBFhXfXVLKEOfVH5okb9rJ4w+QbC8B2y7Xw==",
"shasum": "5c73094ac3200f188fafb836ad1fbb934c9a0796",
"tarball": "https://registry.npmjs.org/538-polls/-/538-polls-0.1.0.tgz",
"fileCount": 18,
"unpackedSize": 20893,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQDGzAaPKXmc0UbQ2DCc9LVrqqHONsbrLK0eKbFGPDyixgIgAzqQBVFCQ047N6eU/D2lBJfLI2raTAbe6g0A4rp3k3s="
}
]
}Observed since 20 Oct, 20:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:5939aa91b259a379e8ea1c2bdd1a678b49daeba937c14b60b8a7a147e06a1a6b