dat-glob
Glob implementation for dat
archives.
Supports both raw hyperdrive
instances and Beaker Browser's DatArchive
API.
Usage
This package exports two modules. The default require('dat-glob')
works with async iteration, whereas require('dat-glob/stream')
uses standard Node streams. Both modules include a collect
method which returns a list of all matching files.
// Async iterationvar glob = { var dat = await DatArchive for await var file of console // 'dat.json' var files = await console // ['dat.json']} // Node streamvar hyperdrive = var glob = var dat = var stream = stream stream
License
Apache-2.0