Back to Explore

streamich/fs-monkey

GitHub
1 watchersOpen source

Last release:

fs-monkey provides monkey-patches for Node.js filesystem related behavior. It can rewrite the built-in `fs` module to use an “fs-like” object, or patch the `require` function so Node loads modules from a custom in-memory or provided fs-like source.

Project status

  • Maintenance status: Appears quiet or in maintenance mode, with no updates since v1.1.0 on 2025-07-18 (last upstream push noted on 2025-09-16), which is roughly 11 to 13 months ago relative to 2026-08-13.
  • Update cadence: The project shows infrequent, sporadic updates rather than a steady cadence, with gaps spanning many months to years across the visible history (for example, 2023-09 to 2024-05, then 2024-05 to 2025-07).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.1.0

    v1.1.0 adds support for patching Node.js fs promises when using patchFs, so fs.promises methods can be routed to the provided memfs volume. The repository also updates documentation and tests around this behavior, and bumps the package version.

    Features
  • v1.0.6

    Release v1.0.6 is labeled as a bug fix release, with the only documented change being removal of unnecessary executable bits. The provided diff shows mostly packaging and metadata updates, including a version bump and a substantial change to package-lock.json, but no application/library source code diff is shown.

  • v1.0.5

    v1.0.5 includes a bug fix to improve how fs-monkey patches Node's require behavior for packages whose package.json uses the exports.require field. The code change is small but targeted, while the diff also updates several development dependencies (notably Jest) via package.json and package-lock.json.

  • v1.0.4

    v1.0.4 documents a single bug fix to include rm and rmSync in the set of fs methods that fs-monkey patches. The code diff also shows maintenance changes, including CI workflow migration from Travis to GitHub Actions and upgrades to several dev dependencies, none of which are mentioned in the release notes.

  • v1.0.3

    Release v1.0.3 includes a documented bug fix for missing JSDoc parameter documentation on `patchRequire`. The code diff also shows several build and development tooling changes (Babel preset, CI Node version, and devDependencies upgrades) that are not mentioned in the release notes.

  • v1.0.1

    v1.0.1 is a small patch release that claims to fix a broken import that prevented the release from working. The actual code change is confined to the main entrypoint, plus minor documentation and dependency metadata updates.

  • v1.0.0

    v1.0.0 primarily exposes additional utilities at the top level, exporting `unixify` and `util` for consumers. The release notes also mention CI setup updates for semantic-release and a generic “new major” marker, but they do not document any deeper behavioral changes. Code changes include both new exports and internal filesystem-method interception list modifications.

    BreakingFeatures
  • v0.3.1

    Release v0.3.1 contains a small bug fix related to the unpatch behavior of fs-monkey. The change removes an unintended console log from the unpatch function so reverting patches does not produce console output.

  • v0.3.0

    Version 0.3.0 introduces two new capabilities for fs-monkey. It adds an unpatch() method to revert any applied patching, and it includes mkdirp in the list of supported filesystem operations.

    Features