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: adm-zip
node v10.24.1
version:
1.0.0
endpoint
share
tweet
Test adm-zip to see if it will work on PKZip
require('request'); const requestPromise = require('request-promise'); const buffer = await requestPromise('http://www.brisnet.com/samples/aqu0207n.zip', {encoding: null}); const AdmZip = require('adm-zip'); const zip = new AdmZip(buffer); zip.getEntries().map(entry => { const data = entry.getData(); return { name: entry.name, size: data.length, data, }; });
Loading…
no comments
sign in
to comment