
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@wapython/unionfs
Advanced tools
NOTE: This is a fork of https://www.npmjs.com/package/unionfs, since it has a significant bug, and it hasn't been updated in years. The bug is also not fixed in the upstream github repo though.
Creates a union of multiple fs file systems.
npm install --save unionfs
This module allows you to use multiple objects that have file system fs API at the same time.
import { ufs } from 'unionfs';
import { fs as fs1 } from 'memfs';
import * as fs2 from 'fs';
ufs.use(fs1).use(fs2);
ufs.readFileSync(/* ... */);
Use this module with memfs and linkfs.
memfs allows you to create virtual in-memory file system. linkfs allows you to redirect fs paths.
You can also use other fs-like objects.
import * as fs from 'fs';
import { Volume } from 'memfs';
import * as MemoryFileSystem from 'memory-fs';
import { ufs } from 'unionfs';
const vol1 = Volume.fromJSON({ '/memfs-1': '1' });
const vol2 = Volume.fromJSON({ '/memfs-2': '2' });
const memoryFs = new MemoryFileSystem();
memoryFs.writeFileSync('/memory-fs', '3');
ufs.use(fs).use(vol1).use(vol2).use(memoryFs);
console.log(ufs.readFileSync('/memfs-1', 'utf8')); // 1
console.log(ufs.readFileSync('/memfs-2', 'utf8')); // 2
console.log(ufs.readFileSync('/memory-fs', 'utf8')); // 3
You can create a Union instance manually:
import { Union } from 'unionfs';
var ufs1 = new Union();
ufs1.use(fs).use(vol);
var ufs2 = new Union();
ufs2.use(fs).use(/*...*/);
Unlicense - public domain.
FAQs
Use multiple `fs` modules in a union.
The npm package @wapython/unionfs receives a total of 1,957 weekly downloads. As such, @wapython/unionfs popularity was classified as popular.
We found that @wapython/unionfs demonstrated a not healthy version release cadence and project activity because the last version was released 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.