Selective Archive
Selectively download files from a hyperdrive archive.
Example
var archive = drive var selectiveArchive = // Download txt files selectiveArchive
See example.js
for full usage example.
Installation
npm install selective-archive
API
var selective = SelectiveArchive(archive)
Archive must a a hyperdrive archive with option sparse: true
.
selective.download(anymatch_array, cb)
Download a selection of files, cb fires when download is finished.
anymatch_array
can be a file list or any anymatch compatible search strings. The archive metadata is traversed and checked against matches before downloading.
License
MIT