Initialize libarchive.js in the browser
masterLibarchivejs consists of an ES module (the interface) and a webworker bundle. Because the webworker bundle is not automatically bundled by most bundlers, you must ensure it is available in your public folder and specify its path using Archive.init().
Note: If the libarchive.js file is in the same directory as the bundle file, you do not need to call Archive.init().
import {Archive} from 'libarchive.js/main.js';
Archive.init({
workerUrl: 'libarchive.js/dist/worker-bundle.js'
});