
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@jsonjoy.com/fs-node
Advanced tools
In-memory filesystem with Node.js fs-compatible API.
npm install @jsonjoy.com/fs-node
import { Volume } from '@jsonjoy.com/fs-node';
const vol = new Volume();
vol.writeFileSync('/hello.txt', 'Hello, World!');
console.log(vol.readFileSync('/hello.txt', 'utf8')); // Hello, World!
import { Volume } from '@jsonjoy.com/fs-node';
const vol = Volume.fromJSON({
'/app/index.js': 'console.log("Hello");',
'/app/package.json': '{"name": "app"}',
});
console.log(vol.readdirSync('/app')); // ['index.js', 'package.json']
The Volume class implements Node.js fs module's synchronous and callback APIs:
readFile, readFileSyncwriteFile, writeFileSyncmkdir, mkdirSyncreaddir, readdirSyncstat, statSyncunlink, unlinkSyncIt also exposes a promises property for the Promise-based API:
const data = await vol.promises.readFile('/hello.txt', 'utf8');
Apache-2.0
FAQs
In-memory filesystem with Node.js fs-compatible API
The npm package @jsonjoy.com/fs-node receives a total of 9,426,467 weekly downloads. As such, @jsonjoy.com/fs-node popularity was classified as popular.
We found that @jsonjoy.com/fs-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.