hyperdrive-is-downloaded
v1.0.0
Published
Check if a hyperdrive has downloaded a given file locally.
Downloads
2
Maintainers
Readme
hyperdrive-is-downloaded
Check if a hyperdrive has downloaded a given file locally.
Usage
npm i --save hyperdrive-is-downloaded
const isDownloaded = require('hyperdrive-is-downloaded`)
const drive = getHyperdriveSomehow()
isDownloaded(drive, '/example.txt', (err, downloaded) => {
if(err) handleYourErrors(err)
else console.log('Is file downloaded:', downloaded)
})