downcache is a Node.js module (v0.1.2, low release cadence) for downloading and caching webpages to disk for fast future retrieval in scraping projects. It wraps the deprecated 'request' library but aims to migrate to a modern HTTP client. Key differentiator: automatically caches HTML responses locally based on URL structure, reducing redundant network calls. Currently in maintenance mode with an open call for contributions to modernize dependencies and add promises.
npm install downcacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: require the module, call with a URL and options (custom cache dir, no force), and handle the response via callback.
Monitor the repository for updates or contribute to migration.
Use util.promisify or wrap in a Promise manually.
Specify a custom 'dir' and 'path' option to control storage structure.
Set 'limit' to a positive integer (milliseconds).
Consider alternatives like 'axios-cache-adapter' or 'node-fetch-cache'.
Use custom logging or suppress logs.
Use `const downcache = require('downcache');`Run `npm install` from the project root to install all dependencies.
Use CommonJS: `const downcache = require('downcache');`Ensure the cache directory exists or set 'dir' option to an existing directory.