memfs is a JavaScript/TypeScript library that implements in-memory versions of the Node.js fs module API and the browser File System Access API. It provides adapters to convert between the Node fs API and the browser File System API, and includes utilities like printing directory trees, creating directory snapshots, and demos such as in-browser Git using an in-memory file system. This is particularly useful for testing, mocking filesystem operations, or using a file system layer inside browser environments where no native file system exists. The library is licensed under Apache-2.0 and has ~2k stars, indicating a reasonable user base.
Features
- Full in-memory implementation of Node.js fs API usable in browser or Node
- Adapter to convert Node fs operations to browser File System Access API and vice versa
- Utilities like directory snapshot, tree printing and demo applications (e.g., Git in browser)
- Works in browser environments where native filesystem doesn’t exist
- TypeScript support and browser+Node compatibility
- Apache-2.0 license for open use in projects
Categories
SystemLicense
Apache License V2.0Follow memfs
Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects
Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of memfs!