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.
npm i memfs
fs APIfs to File System (Access) API adapterfs adaptersnapshot utilityprint directory tree to terminalfs in browser, creates a .tar file in real folderfs in browser, synchronous API, writes to real folderunionfs - creates a union of multiple filesystem volumesfs-monkey - monkey-patches Node's fs module and require functionlinkfs - redirects filesystem pathsspyfs - spies on filesystem actionsApache 2.0