dat-walk
Recursive directory walker for dat
archives.
Supports both raw hyperdrive
instances and Beaker Browser's DatArchive
API.
Usage
This package exports two modules. The default require('dat-walk')
works with async iteration, whereas require('dat-walk/stream')
uses standard Node streams. Both these examples log all file paths of a given dat
to the console.
// Async iterationvar walk = { var dat = DatArchive for await var file of console console} // Node streamvar hyperdrive = var walk = var dat = var stream = streamstream
License
Apache-2.0