Skip to content
JS
Package

mock-fs

A configurable mock file system. You know, for testing.

v5.5.0, 6 Feb 2025MITCommonJSTypes: NoneFiles and file systems
$ npm install mock-fs

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
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.3m (4 Aug 2026)Low 440.9k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v5 first release 5.0.0, 23 May 2021
  2. v4 first release 4.0.0, 5 Feb 2017
  3. v3 first release 3.0.0, 25 Jun 2015
  4. v2 first release 2.0.0, 11 Jan 2014
  5. v1 first release 1.0.0, 6 Jan 2014
  6. v0 first release 0.1.0, 16 Nov 2013

Recent releases

VersionPublished
5.5.06 Feb 2025
5.4.131 Oct 2024
5.4.011 Oct 2024
5.3.026 Sept 2024
5.2.028 Oct 2022
5.1.44 Aug 2022
5.1.32 Aug 2022
5.1.28 Nov 2021
5.1.123 Sept 2021
5.1.017 Sept 2021
5.0.023 May 2021
4.14.022 Apr 2021
4.13.020 Aug 2020
4.12.024 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mock-fs@5.5.0/
  • unpkghttps://unpkg.com/mock-fs@5.5.0/
  • esm.shhttps://esm.sh/mock-fs@5.5.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.