fetchival
JSON →A tiny (0.5kb min/gz) fetch wrapper for making JSON requests easier in the browser (IE9+) and Node. Current stable version is 0.3.3. It simplifies common fetch patterns by providing .get(), .post(), .put(), .patch(), and .delete() methods with automatic JSON handling, headers, and error checking. Unlike plain fetch, it automatically serializes request bodies to JSON, parses responses, and rejects non-2xx status codes. It also supports path nesting (e.g., fetchival('/posts')(1).get()). Requires a fetch polyfill in older browsers (whatwg-fetch) and a fetch implementation in Node (node-fetch). Low release cadence (last update 2015).