Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ipfs-shipyard/ipfs-or-gateway
Download an hash via IPFS, falling back to an HTTP Gateway
https://github.com/ipfs-shipyard/ipfs-or-gateway
gateway ipfs tool utility
Last synced: 7 days ago
JSON representation
Download an hash via IPFS, falling back to an HTTP Gateway
- Host: GitHub
- URL: https://github.com/ipfs-shipyard/ipfs-or-gateway
- Owner: ipfs-shipyard
- Created: 2019-03-05T12:07:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T16:01:58.000Z (11 months ago)
- Last Synced: 2024-11-15T21:57:46.762Z (about 1 month ago)
- Topics: gateway, ipfs, tool, utility
- Language: JavaScript
- Homepage:
- Size: 531 KB
- Stars: 8
- Watchers: 12
- Forks: 2
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ipfs-or-gateway
[![](https://img.shields.io/npm/v/ipfs-or-gateway.svg?style=flat-square)](https://www.npmjs.com/package/ipfs-or-gateway)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs)> 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