memfs
v4.14.0
Published
In-memory file-system with Node's fs API.
Downloads
72,522,983
Maintainers
Readme
memfs
JavaScript file system utilities for Node.js and browser.
Install
npm i memfs
Resources
- Documentation
- In-memory Node.js
fs
API experimental
fs
to File System Access API adapterexperimental
File System Access API tofs
adapterexperimental
crudfs
a CRUD-like file system abstractionexperimental
casfs
Content Addressable Storage file system abstraction- Directory
snapshot
utility print
directory tree to terminal
- In-memory Node.js
- Code reference
- Test coverage
Demos
- Git in browser, which writes to a real folder
- Git in browser, which writes to OPFS file system
- Git on in-memory file system
fs
in browser, creates a.tar
file in real folderfs
in browser, synchronous API, writes to real foldercrudfs
andcasfs
in browser and Node.js interoperability
See also
unionfs
- creates a union of multiple filesystem volumesfs-monkey
- monkey-patches Node'sfs
module andrequire
functionlinkfs
- redirects filesystem pathsspyfs
- spies on filesystem actions
License
Apache 2.0