Fetch wrapper adding retries, error handling, and query string building. v1.0.0 (stable). Isomorphic: works in Node ≥16 and browsers via isomorphic-fetch. Differentiators: built-in retry logic, automatic query string construction from objects, and insecure request support for self-signed certificates. Ships TypeScript types. No release cadence documented.
npm install fetch-plus-plusNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows default ESM usage with POST request, query string, retries, and TypeScript types.
Use the returned value as-is; for low-level control, use node-fetch or global fetch directly.
Avoid insecure: true; use proper certificate validation.
Ensure URL has no query string before using queryString option.
Set retries: 3 for up to 3 retries (4 total attempts including initial).
import fetch from 'fetch-plus-plus' (ESM) or const fetch = require('fetch-plus-plus').default (CJS)Check URL and network; for self-signed certs ensure insecure: true (not recommended for production).
npm install isomorphic-fetch (v3+). Note: v3 uses ESM.
Set Content-Type or manually handle non-JSON responses via raw response object (if exposed).