memfs
JavaScript file system utilities for Node.js and browser. Implementation of in-memory Node.js fs module API and in-memory browser File System API, as well as adapters from fs module to File Sytem API and from File Sytem API to fs module.
Install
npm i memfs
Resources
- In-memory Node.js 
fsAPI - In-memory browser File System (Access) API
 fsto File System (Access) API adapter- File System (Access) API to 
fsadapter - Directory 
snapshotutility printdirectory 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
 fsin browser, creates a.tarfile in real folderfsin browser, synchronous API, writes to real folder
See also
unionfs- creates a union of multiple filesystem volumesfs-monkey- monkey-patches Node'sfsmodule andrequirefunctionlinkfs- redirects filesystem pathsspyfs- spies on filesystem actions
License
Apache 2.0