Skip to content

Download an hash via IPFS, falling back to an HTTP Gateway

Notifications You must be signed in to change notification settings

ipfs-shipyard/ipfs-or-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipfs-or-gateway

Download an hash via IPFS, falling back to an HTTP Gateway

Usage

npx ipfs-or-gateway -c cid -p path [--clean --archive --compress -g gatewayUrl]
  • --clean – remove destination if it already exists
  • --archive – produce .tar archive instead of unpacked directory tree
  • --compress – compress produced archive with Gzip, produce .tar.gz (requires --archive)

Contributing

PRs accepted.

License

MIT © Protocol Labs