An HTTP client library for periodically fetching and caching data from web services. Current stable version is 11.0.1, released with support for Node.js 20.x and 22.x. It provides a simple polling mechanism with built-in caching and error handling, differentiating itself from generic polling libraries by its focus on HTTP services and integration with Financial Times' infrastructure. Release cadence is irregular, with breaking changes in major versions.
npm install ft-pollerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a poller that fetches data every 60 seconds from an HTTPS endpoint with auth header.
Convert require() to import syntax. If using TypeScript, ensure moduleResolution is node16 or bundler.
Replace 'import Poller from "ft-poller"' with 'import { Poller } from "ft-poller"'.Update your constructor to pass an options object: new Poller({url: '...', interval: 60000}).Upgrade Node.js to 20.x LTS or 22.x.
Check package version. For v10+, use named import. For older versions, use 'import Poller from "ft-poller"'.
Run 'npm install node-fetch' or add it to your package.json.
Use 'import' syntax. If you must use require, downgrade to ft-poller@10.0.0 or earlier.