adm-zip icon indicating copy to clipboard operation
adm-zip copied to clipboard

How to use in ES6 ?

Open dev-amirmufid opened this issue 3 years ago • 3 comments

dev-amirmufid avatar Jan 06 '22 16:01 dev-amirmufid

You can include the lib with the following and then the behavior should be the same.

import pkg from 'adm-zip';
const AdmZip = pkg;

Zambonilli avatar Jan 19 '22 18:01 Zambonilli

this haven't work( trying calling new AdmZip() saying, that admzip.default doesn't have constructor

IlyaSovenko avatar Feb 17 '22 15:02 IlyaSovenko

import AdmZip from 'adm-zip'
const zip = new AdmZip()

ParallelUniv3rse avatar Feb 28 '22 12:02 ParallelUniv3rse