Fetch npm module tarballs from various sources, including npm registry, GitHub, git, and local files. Current version 0.0.9 is marked as a work in progress and unstable. Provides high-level fetch() and per-source functions like npm.version(), npm.range(), github(), tarball(), local.dir(), local.file(). Differs from pacote or npm-packlist by focusing on tarball download rather than full package extraction.
npm install npm-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Downloads the tarball of npm-fetch version 0.0.1 to a local file.
Use alternatives like pacote or npm-packlist for tarball fetching.
Always pass options object even if empty: fetch(name, spec, dest, {}, cb).Use fetch.github(name, 'user/repo#tag', options) with the sharp symbol.
Check if package is still available: npm view npm-fetch. If missing, use pacote instead.
No dependency data recorded yet.