JSPM

wacz2car

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q27523F
  • License Apache-2.0

Conver WACZ files to CAR files for uploading to IPFS.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wacz2car) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    wacz2car

    Conver WACZ files to CAR files for uploading to IPFS.

    import {wacz2Car} from 'wacz2car'
    import { createLoader } from '@webrecorder/wabac/src/blockloaders.js'
    
    const loader = await createLoader({someURL})
    const carStream = wacz2Car(loader)
    
    for await (const chunk of stream.readable) {
      writeChunkToFile(chunk)
    }
    
    const rootCID = stream.finalBlock.cid