Middleware for fetch-plus that adds automatic JSON parsing and request/response handling. Stable version 3.10.4, low release cadence (last update 2017). Integrates tightly with fetch-plus to simplify JSON API interactions. Key differentiator: minimal abstraction over the Fetch API while providing middleware chaining.
npm install fetch-plus-jsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a fetch-plus client, apply jsonMiddleware, and make a GET request with automatic JSON parsing.
Ensure fetch-plus is installed: npm install fetch-plus
Consider alternatives like ky or plain fetch with JSON handling.
Call client.use(jsonMiddleware) after creating the client.
npm install fetch-plus
Create client via fetch-plus.createClient() first.
Install and import node-fetch: npm install node-fetch