We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/foragepm/zipdigest
something like:
const {zipDigest} = require('zipdigest'); const tmp = require('tmp-promise'); const fs = require('fs-extra'); async function dirhash(url) { var dir = await tmp.dir() var zippath = dir.path + '/temp.zip' const res = await fetch(url); const fileStream = fs.createWriteStream(zippath); await new Promise((resolve, reject) => { res.body.pipe(fileStream); res.body.on("error", reject); fileStream.on("finish", resolve); }); var digest = await zipDigest(zippath) await fs.remove(zippath) return digest }
algo should be called dirhash
dirhash
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/foragepm/zipdigest
something like:
algo should be called
dirhash
The text was updated successfully, but these errors were encountered: