
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
opfs-extra brings the user-friendly API to OPFS, just like fs-extra
Try it online: opfs-extra Playground.
npm i opfs-extra
import { OPFS } from "opfs-extra";
// Initialization
const opfs = await OPFS.open();
// Directory Creating
await opfs.mkdir("/data");
// File Writing
await opfs.writeFile("/data/hello.txt", "Hello World");
await opfs.writeJSON("/data/hello.json", { text: "Hello World" });
// File Reading
const text = await opfs.readText("/data/hello.txt"); // "Hello World"
const json = await opfs.readJSON("/data/hello.json"); // { text: "Hello World" }
// Directory Reading
const files = await opfs.readdir("/data"); // ["hello.txt", "hello.json"]
// Exists
await opfs.exists("/data/hello.json"); // true
// Remove
await opfs.remove("/data");
These methods will create file and parent directories automatically if needed.
FAQs
opfs-extra brings the user-friendly API to OPFS, just like fs-extra.
We found that opfs-extra 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.