Big news! Sonar has entered a definitive agreement to acquire Tidelift!
    • GitHub
    • GitLab
    • Bitbucket
    • By logging in you accept
      our terms of service
      and privacy policy

memfs
Release 4.36.0

Release 4.36.0
  • 4.43.0
  • 4.42.0
  • 4.41.0
  • 4.40.0
  • 4.39.0
  • 4.38.3
  • 4.38.2
  • 4.38.1
  • 4.38.0
  • 4.37.1

In-memory file-system with Node's fs API.

Homepage npm TypeScript Download


Keywords
fs, filesystem, fs.js, memory-fs, memfs, file, file system, mount, memory, in-memory, virtual, test, testing, mock, fsa, file system access, native file system, webfs, crudfs, opfs, casfs, content addressable storage, browserfs, cas, crud, file-system, node
License
Apache-2.0
Install
npm install memfs@4.36.0

Documentation

memfs

JavaScript file system utilities for Node.js and browser.

Install

npm i memfs

Resources

  • In-memory Node.js fs API
  • In-memory browser File System (Access) API
  • fs to File System (Access) API adapter
  • File System (Access) API to fs adapter
  • Directory snapshot utility
  • print directory tree to terminal
  • 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 folder
  • fs in browser, synchronous API, writes to real folder

See also

  • unionfs - creates a union of multiple filesystem volumes
  • fs-monkey - monkey-patches Node's fs module and require function
  • linkfs - redirects filesystem paths
  • spyfs - spies on filesystem actions

License

Apache 2.0

The maintainers of this project get paid by Tidelift to make sure it meets pre-defined standards around security, maintenance and licensing.

Want to learn more? Chat with an expert at Tidelift.

Stats

Dependencies
6
Dependent packages
2.87K
Dependent repositories
1.4K
Total releases
203
Latest release
1 day ago
First release
Jun 15, 2015
Stars
1.94K
Forks
138
Watchers
11
Contributors
61
Repository size
12.1 MB
SourceRank
23

Releases

4.43.0
Sep 20, 2025
4.42.0
Sep 16, 2025
4.41.0
Sep 16, 2025
4.40.0
Sep 16, 2025
4.39.0
Sep 10, 2025
4.38.3
Sep 9, 2025
4.38.2
Aug 26, 2025
4.38.1
Aug 24, 2025
4.38.0
Aug 24, 2025
4.37.1
Aug 22, 2025
See all 203 releases

Contributors

Va Da Mend Renovate Semantic Release Bot Gareth Jones Copilot renovate[bot] dependabot[bot] Laurent Dupuy Sukka Florian Loch Artem Sapegin teagrinder Aram Drevekenin Mikhail Kyle Carberry uhyo William Stein Richie JIACHENG9 Garrett Serack Scott Feeney Louis Stanley Horwood BadIdeaException


See all contributors

Login to resync this project

Libraries.io helps you find new open source packages, modules and frameworks and keep track of ones you depend upon.

   



Copyright © 2025 SourceSource SA
Code is Open Source under AGPLv3 license
Data is available under CC-BY-SA 4.0 license

Explore
  • Platforms
  • Languages
  • Licenses
  • Terms and Conditions
  • Privacy Policy
  • API
Sonar Products
  • SonarQube for IDE
  • SonarQube Server
  • SonarQube Cloud
  • SonarQube Advanced Security
  • Pricing
Sonar Resources
  • About
  • Blog
  • Product demos
  • Events hub
  • Customer stories
  • Learn