Last updated 5 months ago
• Docs
/ / dumpToCar
dumpToCar(resolver): AsyncIterable<Uint8Array>
resolver
AsyncIterable
Uint8Array
Dump all resolvable chains to a CARv2 file.
Resolver
AsyncIterable<Uint8Array>
// You can output the car to a file with: import { pipeline } from 'node:stream/promises' import { createWriteStream } from 'node:fs' await pipeline( dumpToCar(resolver), createWriteStream(path) )