fetch-json-cache

JSON →
library 1.6.3 ·javascript
verified Jun 7, 2026

A Node.js library for fetching JSON from URLs with disk caching. It updates the cache only when the ETag changes, and falls back to cached data if the endpoint is unreachable. Uses write-file-atomic for safe file writes. v1.6.3 requires Node >=0.8, ships TypeScript types, and supports both callbacks and Promises. Designed for reliability in offline or flaky network scenarios.