Observed since 20 Oct, 21:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
7z-wasm
7-Zip for JavaScript environments, compiled to WASM
7-Zip compiled to WASM with emscripten. Based on 7-Zip 24.09 (2024-11-29).
7zz CLI supports.Inspired by https://github.com/sonictruth/7zip.js
npx 7z-wasm --help
or
npm i -g 7z-wasm
7z-wasm --help
import SevenZip from "7z-wasm";
const sevenZip = await SevenZip();
const archiveData = new Uint8Array(100);
const archiveName = "archive.7z";
const stream = sevenZip.FS.open(archiveName, "w+");
sevenZip.FS.write(stream, archiveData, 0, archiveData.length);
sevenZip.FS.close(stream);
const filesToExtract = ["some-file.txt"];
sevenZip.callMain(["x", archiveName, ...filesToExtract]);
console.log(sevenZip.FS.readFile(filesToExtract[0]));
import SevenZip from "7z-wasm";
const mountRoot = "/nodefs";
sevenZip.FS.mkdir(mountRoot);
sevenZip.FS.mount(sevenZip.NODEFS, { root: "/real/root/folder" }, mountRoot);
sevenZip.FS.chdir(mountRoot + "/subfolder");
sevenZip.callMain(["x", "archive.7z", "some-file.txt"]);
Because the 7-Zip sources are not available on GitHub, the build process relies on downloading the sources from the 7-Zip website and patching them so they compile with emcc.
./build (or .\build, respectively, on Windows CMD)You can pass custom options to emcc via env file (e.g. see build-umd.env)
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"shasum": "056ddd38b15acce13016b9dc73d39b7f8adb6b77",
"tarball": "https://registry.npmjs.org/7z-wasm/-/7z-wasm-1.0.0-beta.3.tgz",
"fileCount": 10,
"integrity": "sha512-C/ZlVzqIzQ0GCF1tMD3nYFK1UGnEdGPNwcud2lHToUVXaPtDiWS20Ea9NhTRyLI3k1bYGPysEt3yRyZKHb8R8A==",
"signatures": [
{
"sig": "MEQCIEKbUVwkxL35TuJTIW52U8crxdyVGCQ3uaCn91zVxFHCAiA7CshIKH33h3KtL3PT/Y54rhn/yFZwdpGM8fu4qxt7tg==",
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
}
],
"unpackedSize": 2331329,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLdpuCRA9TVsSAnZWagAAI5QP/0Oqyd/LDGXN1ZhBu0+v\nZ7bJ/PyIaXLs89Uo1RRyJOBV0xfbo4JknQt5/EnrcXg5tSfFm8WMpIOl+deq\nm8hN06oS/VoZ8ZnqH1QZRVqeUItNxvWkX0SRxR0JQELyVRW73tCK8RByavnB\n//dGFgInCQtSMlktQVOoWNKVlD2QC/3X1VQASW0oXzVzf64drsu4XiBskMkI\nP13M8cvUot5MK5DURcyALbppdpz43TiyrhtdasnwKIt3w1Mc9bSPRl6V9lZ3\nG+c/pKAN+28AGQRF5uG3JGKDcxNIQbiWd7B94ohXEuJj+Elbb6pOMNluVohz\nzwLqlcgaKGsGvueuvrUKMfzLPvRFkSqr8vnBrt284wRb0N/lZBhCWMp53DH6\n6T5eCzdBW3vGUIBDiF6858gJpZqyGC+GCwvsg3VbcVpxIcFgq+LOvuQ+VC8O\n48/POVFIMv2jbBYYd3dFgXfSXM3bCqT23zOJqAlaPChdOrMUDzV+S6dDwQPb\nG//E2f480Jx4cKZ1Pgh50+VWASchusQBX5GA4Ray8tfKTm6hCVHI5vVNvWx7\niHqCRfCmKkgPGge1RiwhUTr/CvEv2SNptj3WV7W/gv4vpGZEsYhe91FLmD/n\nnTz/E4QUPAt/6aqKSIpqKo5bJ/2WZrXhx9tcSDAK1fnGo92CG9wTje9W0Epv\nbFpr\r\n=y6Ci\r\n-----END PGP SIGNATURE-----\r\n"
}Observed since 20 Oct, 21:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:d7f90b335e2b74d2c0977beb1cece357dc33f73687b6fe6e03c0b6658ba6f53f