Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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