v1.4.2

Installation

BoltFetch is distributed as a single, lightweight NPM package.

BoltFetch was optimized for Bun, though it works perfectly anywhere fetch is supported.

bash
bun install bolt-fetch-ts

Using NPM / PNPM / Yarn

bash
npm install bolt-fetch-ts pnpm install bolt-fetch-ts yarn add bolt-fetch-ts

Environment Requirements

BoltFetch relies entirely on the native Web fetch API. It has zero external dependencies.

  • Browsers: All modern browsers.
  • Node.js: Version 18.0.0 or higher (when native fetch was introduced).
  • Bun: All versions.
  • Deno: All versions.
  • Edge Runtimes: Cloudflare Workers, Next.js Edge, Vercel Edge.

If you are running an older version of Node (e.g. Node 16) and cannot upgrade, BoltFetch will not work out of the box because globalThis.fetch is undefined. You would need to polyfill it (e.g., import fetch from "node-fetch"; globalThis.fetch = fetch;), though upgrading is highly recommended.