Package
mock-fs
A configurable mock file system. You know, for testing.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 1.2m
- +17% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 1 year ago
- v5.5.0
- GitHub stars
- 916
- 86 forks
- Open issues / PRs
- 68 / 7
- Contributors
- -
- Commits, last 52 weeks
- 13
Downloads
Last week 2026-09-15 to 2026-09-21
1,160,032 downloads last week, 4,503,743 in the last month. The 12-month change of +17% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 076 in total
- Latest version
- 5.5.0, 6 Feb 20251 year ago
- First published
- 16 Nov 2013
- Last push to GitHub
- 1 Mar 2026208 days before the snapshot
- Repository archived
- No
- Open issues
- 68
- Open pull requests
- 7
- Commits, last 52 weeks
- 13
- Dependents on npm
- 205
Major versions
- v5 first release 5.0.0, 23 May 2021
- v4 first release 4.0.0, 5 Feb 2017
- v3 first release 3.0.0, 25 Jun 2015
- v2 first release 2.0.0, 11 Jan 2014
- v1 first release 1.0.0, 6 Jan 2014
- v0 first release 0.1.0, 16 Nov 2013
Recent releases
| Version | Published |
|---|---|
| 5.5.0 | 6 Feb 2025 |
| 5.4.1 | 31 Oct 2024 |
| 5.4.0 | 11 Oct 2024 |
| 5.3.0 | 26 Sept 2024 |
| 5.2.0 | 28 Oct 2022 |
| 5.1.4 | 4 Aug 2022 |
| 5.1.3 | 2 Aug 2022 |
| 5.1.2 | 8 Nov 2021 |
| 5.1.1 | 23 Sept 2021 |
| 5.1.0 | 17 Sept 2021 |
| 5.0.0 | 23 May 2021 |
| 4.14.0 | 22 Apr 2021 |
| 4.13.0 | 20 Aug 2020 |
| 4.12.0 | 24 Apr 2020 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=12.0.0
- Runtimes
- -
- Unpacked size (npm)
- 105 kB
- Dependencies (0)
- None
npm install mock-fs- jsDelivr
https://cdn.jsdelivr.net/npm/mock-fs@5.5.0/ - unpkg
https://unpkg.com/mock-fs@5.5.0/ - esm.sh
https://esm.sh/mock-fs@5.5.0
Indexability: Indexed.