dat-readdir-stream is a small util to read the file-table of a dat
as a stream, rather than through
npm i dat-readdir-stream --save
archiveHyperdrive archive (object).
opts.globDo a glob match over a folder (string).
opts.globOptsOptions passed to Minimatch (object).
opts.cwdTarget directory path (string), defaults to
opts.recursiveRead all subfolders and their files as well?
opts.maxDepthLimit the depth until which to look into folders.
opts.depthFirstUsing a depth-first search instead of the default breadth-first search.
- Returns a readable stream in
Object Mode. The payload per entry is an object:
entry.locationThe path of the entry
entry.statsA Stats object for that path
const ReaddirStream =var stream = archive cwd: '/assets'streamvar stream = archive recursive: truestreamvar stream = archive recursive: true depthFirst: truestream