
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
not-memory-fs
Advanced tools
A descendant of MemoryFileSystem that persists to disk instead of memory
A descendant of MemoryFileSystem that persists to disk instead of memory, created to address this issue.
This business is somewhat risky, because it's possible for some module which
expects this to be a vanilla MemoryFileSystem to wreak havoc on the system,
doing an rm -rf on the root directory or some such. Hence the need for a
sandbox, to limit the possible damage (best-effort).
Why not persist to disk asynchronously, while forwarding requests to MemoryFileSystem synchronously, that way preserving the original performance boost? Because this keeps the code simple, and allows one to edit the files and have those changes noticed by the consumer of the file system. And the boost is becoming negligible on NVMe SSDs (though the writes do, unfortunately, damage the drive unnecessarily).
memory-fs is just a development dependency. Why? It's important for this
module and the code running instanceof MemoryFileSystem to require the same
copy of memory-fs, otherwise it may resolve to false, negating the main
purpose of this wrapper, like in webpack-dev-middleware's case.
mkdirp brings an unnecessary dependency with it, minimist, unfortunately,
but it's tiny, so that's tolerable.
FAQs
A descendant of MemoryFileSystem that persists to disk instead of memory
We found that not-memory-fs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.