Skip to content

Latest commit

 

History

History

car

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@atcute/car

CAR (content-addressable archvie) repository decoder

// convenient iterator for reading through an AT Protocol CAR repository
for (const { collection, rkey, record } of iterateAtpRepo(buf)) {
	// ...
}

// read through a CAR archive
const { roots, iterate } = readCar(buf);

for (const { cid, bytes } of iterate()) {
	// ...
}