{"library":"fetch-json-cache","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.6.3","tags":["javascript","every","async","array","callback","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-json-cache","imports":["const Cache = require('fetch-json-cache')","const Cache = require('fetch-json-cache')","const Cache = require('fetch-json-cache'); const cache = new Cache('./cache'); const json = await cache.get('https://api.example.com/data')"]},{"cmd":"yarn add fetch-json-cache","imports":[]},{"cmd":"pnpm add fetch-json-cache","imports":[]}],"homepage":"https://github.com/kmalakoff/fetch-json-cache","github":"ssh://git@github.com/kmalakoff/fetch-json-cache","docs":null,"changelog":null,"pypi":null,"npm":"fetch-json-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}