
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@bytecodealliance/jco-node-fs
Advanced tools
@bytecodealliance/jco-node-fsNative Node.js filesystem helpers used by Jco's WASI shims.
The package intentionally exposes only filesystem operations that the Node.js standard library cannot provide. It is not a general-purpose filesystem API.
import { open } from 'node:fs/promises';
import { fadvise } from '@bytecodealliance/jco-node-fs';
const file = await open('data.bin', 'r');
try {
fadvise(file.fd, 0n, 0n, 'sequential');
} finally {
await file.close();
}
rename(oldPath, newPath) synchronously renames a host file or directory. It can
atomically replace an existing empty directory on Windows, using Rust's native
rename implementation. Symlinks are moved without moving their targets.
import { rename } from '@bytecodealliance/jco-node-fs';
rename('staging', 'destination');
Both paths must be strings. Relative paths use the process's current directory.
Errors include code, syscall, path, and dest properties.
This binding supports the directory replacement required by the updated Wasmtime conformance tests. The Preview 2 shim can adopt it after a helper release includes the binding; its current dependency continues to use the existing implementation.
FAQs
Native Node.js filesystem helpers for Jco
The npm package @bytecodealliance/jco-node-fs receives a total of 10,647 weekly downloads. As such, @bytecodealliance/jco-node-fs popularity was classified as popular.
We found that @bytecodealliance/jco-node-fs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.