A collection of fetch wrappers providing killswitch, logging, timeouts, concurrency limits, JSON-RPC batching, and replayable requests. Built on top of the browser's native fetch() API, it enables secure network control in environments where raw fetch is insufficient. Version 1.0.0 is stable, with composable wrappers (ftch, jsonrpc, replayable) that can be chained. Unlike heavier alternatives, it focuses on minimal overhead and TypeScript first-class support. Ideal for testing, rate-limited APIs, and secure contexts.
npm install micro-ftchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a fetch wrapper with killswitch, logging, concurrency limit, and JSON-RPC batching, plus replayable mode for testing.
Use dynamic import: const { ftch } = await import('micro-ftch'); or switch to ESM.Ensure you share the same ftch instance across all calls if you want a global limit.
Use AbortController for full cancellation if needed.
Run 'npm install micro-ftch' and ensure your project uses ESM (set 'type': 'module' in package.json or use .mjs extension).
Polyfill fetch: npm install node-fetch, then import fetch from 'node-fetch'; const f = ftch(fetch, {...});Check the condition that controls the killswitch and toggle it to true.
No dependency data recorded yet.