1.0.5 • Published 6 months ago

fs-monkey v1.0.5

Weekly downloads
1,127,602
License
Unlicense
Repository
github
Last release
6 months ago

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.

componennenttexpress-juju@uchihayuki/express-juju@devapi/kubik@nodesh/nodeshlevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29cclibyarntest@saaspe/componentshyperpass-sdksklif-ui-kitsklif-api@everything-registry/sub-chunk-1706@314oner_npm/universal-components-libraryp149-tablesklif-ui@arielapaula/components@arielapaula/test@aleung/unionfs@darwishdev/dash-dev@blkmarketco/components-librarynextjs-storiesud7-act2virtual-tour-guidetinymce-plugin-toytestweblibapiunionfsvuniversalwebpack-universal-compilerwhale-docgen-in-browserwebpack_component_fundwebdatabasetest1webdatabasetest10webliblevi3webpack-dev-executertohsaka888-use-breakpointsf-web-componentssummerseatestlsvelte-component-libtaman-baca-masyarakatstories-fsstyle-guide-mainresponsis-gantt-task-reactrouter-loggerrollup-plugin-memory-fssass-extractspyfs@cowasm/memfs@img-arena/img-ui-mui-theme@img-arena/ui-core@dimcheify/dimui@anonybit-modules/videoreconstruction@enirisdev/angular-google-charts@forabi/memfs@f0x52/spyfs@itayn-fireberry-org/itayn-test@fabwcie/ckeditor5-preview@chiaraani/bouncing-ball@jlallement/cookieconsent@junvary/quasar-ui-qcascader@juanaraneta/dept-central-lib-client@knooks/use-title@leiyulf/gantt-task-react@lego-js/tests@lozzychops/dropdown-menu@mathu01/gdpr-consent@marinaga/bananize@mayuriachewad/pickupbiz-npm-package@phated/unionfs@peeky/runner@itsridhopratama/taman-baca-masyarakatmy-library-buttonmy-webpack-number-test-demo@zhangchongzhi/webpacknewdemo1emily-webpackmavectramd-vditor@wacoco/ymj4d-excalidraw-original@skeetboothppq/component-librarydynamic-ui-practice@vasosolo/multiselectcombobox@wapython/unionfsmicroend-componentnka-gantt-task-reactanchors-clinode-arcadyappcharge-checkoutappcharge-checkout-reactjs-sdkbackgammon_ui_sharednovacap-componentsmultiplatformlevi
1.0.5

6 months ago

1.0.4

10 months ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.4.0

4 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago