# mock-fs — card for AI agents

Mock file system for Node.js tests.

Category: Testing · npm package `mock-fs` · latest version 5.5.0 (checked 2026-11-01)
Install: `npm install mock-fs`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 36.7 (#3398 of all tools, 99 of 122 in its category)
- Used in 11 public projects set up for AI coding agents (0.2%)
- Downloads last week: 1,297,818 (as of 2026-11-17), -12.1% over 4 weeks
- GitHub stars: 919 (as of 2026-11-17)
- Last push: 2026-03-01

## Often used with
dotenv 92.3%, tsx 92.3%, Zod 92.3%, Commander 84.6%, Prettier 84.6%, uuid 84.6%

## Links
- AgentGid page: https://agentgid.com/tools/mock-fs/
- Homepage: https://github.com/tschaub/mock-fs
- Repository: https://github.com/tschaub/mock-fs

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
