openwt
v1.0.10
Published
A simple and efficient IPFS file downloader with HTTP gateway fallback
Readme
openwt
A simple and efficient IPFS file downloader with HTTP gateway fallback.
Installation
npm install openwtUsage
import { downloadFromIPFS } from 'openwt';
// Download a file from IPFS
await downloadFromIPFS('QmExample...', './output.file');Features
- Download files from IPFS using HTTP gateways
- Progress bar with download speed
- Automatic gateway fallback
- TypeScript support
- Zero configuration required
API
downloadFromIPFS(cid: string, outputPath: string): Promise<void>
Downloads a file from IPFS using HTTP gateways.
cid: The IPFS CID of the file to downloadoutputPath: The local path where the file should be saved
License
ISC
