Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
7z-wasm
Advanced tools
Readme
7-Zip compiled to WASM with emscripten. Based on 7-Zip 22.01 (2022-07-15).
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)
FAQs
7-Zip for JavaScript environments, compiled to WASM
The npm package 7z-wasm receives a total of 639 weekly downloads. As such, 7z-wasm popularity was classified as not popular.
We found that 7z-wasm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.