Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

fs-monkey

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Issues
File Explorer

Advanced tools

fs-monkey

Monkey patches for file system related things.

    1.0.3latest

Version published
Maintainers
1
Weekly downloads
9,625,848
decreased by-14.98%

Weekly downloads

Changelog

Source

1.0.3 (2021-04-05)

Bug Fixes

  • add missing parameter in jsdoc for patchRequire (#233) (28a5d9b)

Readme

Source

fs-monkey

Monkey-patches for filesystem related things.

  • Rewrite require function to load Node's modules from memory.
  • Or rewrite the whole fs filesystem module.

Install

npm install --save fs-monkey

Terms

An fs-like object is an object that implements methods of Node's filesystem API. It is denoted as vol:

let vol = { readFile: () => { /* ... */ }, readFileSync: () => { /* ... */ }, // etc... }

Reference

  • patchFs - rewrites Node's filesystem module fs with fs-like object vol
  • patchRequire - rewrites require function, patches Node's module module to use a given fs-like object for module loading

License

Unlicense - public domain.

Keywords

FAQs

What is fs-monkey?

Monkey patches for file system related things.

Is fs-monkey popular?

The npm package fs-monkey receives a total of 7,760,112 weekly downloads. As such, fs-monkey popularity was classified as popular.

Is fs-monkey well maintained?

We found that fs-monkey 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.

Last updated on 05 Apr 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc