Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@browserfs/zip
Advanced tools
BrowserFS backend for Zip files.
Please read the BrowserFS documentation!
This package adds the Zip
backend, which allows you to create a readonly file system from a zip file.
For more information, see the API documentation.
[!NOTE] The examples are written in ESM. If you are using CJS, you can
require
the package. If running in a browser you can add a script tag to your HTML pointing to thebrowser.min.js
and use BrowserFS Zip via the globalBrowserFS_Zip
object.
You can't use Zip
on its own. You must import the core in order to use the backend.
import { configure, fs } from '@browserfs/core';
import { Zip } from '@browserfs/zip';
const res = await fetch('http://example.com/archive.zip');
await configure({
'/mnt/zip': { backend: Zip, zipData: await res.arrayBuffer() },
});
const contents = fs.readFileSync('/mnt/zip/in-archive.txt', 'utf-8');
console.log(contents);
FAQs
Zip backend for BrowserFS
We found that @browserfs/zip 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.