- Notifications
You must be signed in to change notification settings - Fork20
Monkey-patches for file system related things
License
NotificationsYou must be signed in to change notification settings
streamich/fs-monkey
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Monkey-patches for filesystem related things.
- Rewrite
require
function to load Node's modules from memory. - Or rewrite the whole
fs
filesystem module.
npm install --save fs-monkey
Anfs-like object is an object that implements methods of Node'sfilesystem API.It is denoted asvol
:
letvol={readFile:()=>{/* ... */},readFileSync:()=>{/* ... */},// etc...}
patchFs
- rewrites Node's filesystem modulefs
withfs-like objectvol
patchRequire
- rewritesrequire
function, patches Node'smodule
module to use a givenfs-like object for module loading
Unlicense - public domain.
About
Monkey-patches for file system related things
Resources
License
Security policy
Stars
Watchers
Forks
Packages0
No packages published