Ultra simple async retrieval of resources or remote files over HTTP/HTTPS, acting as a CLI tool and convenience wrapper around node-fetch with built-in retry. Version 1.1.3 targets Node.js >=12.0.0. It provides a main `fetching` function with response type options (download, json, text, etc.) and convenience methods for GET, HEAD, OPTIONS, POST, PUT, PATCH, DELETE. Differentiates itself from plain node-fetch by adding file download (`wget`), retry logic, and simpler response-type handling. Active development, weekly releases.
npm install node-wget-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows default export usage for download and JSON retrieval, including retry configuration.
Use ES module `import` syntax or use default export with `const fetching = require('node-wget-fetch');` for main function only.Use `fetching(url, 'download')` instead.
Always attach error listener: `stream.on('error', ...)`.Use `import` statement or change to default import: `const fetching = require('node-wget-fetch');`Use default import: `import fetching from 'node-wget-fetch'`