Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
archive: unzipper
node v8.17.0
version:
1.0.0
endpoint
share
tweet
Test unzipper to see if it will read the Brisnet files
require('request'); const requestPromise = require('request-promise'); const unzipper = require('unzipper'); const buffer = await requestPromise('http://www.brisnet.com/samples/aqu0207n.zip', {encoding: null}); const zip = await unzipper.Open.buffer(buffer); const entries = await Promise.all(zip.files.map(async file => { return { name: file.path, size: file.uncompressedSize, data: await file.buffer(), }; }));
Loading…
no comments
sign in
to comment