/web3-importer

Exports a CAR file with a given CID from a IPFS gateway and uploads it into web3.storage.

Primary LanguageJavaScript

web3 importer

Exports a CAR file with a given CID from a IPFS gateway and uploads it into web3.storage.

Usage

npm install web3-importer
const rootCid = 'bafy...'
const ipfsGatewayUrl = 'https://ipfs.io'
const web3StorageToken = 'eyJhbGc...' // Get it from web3.storage
await web3Import(rootCid, ipfsGatewayUrl, web3StorageToken)