1.0.6 • Published 1 year ago
fs-monkey v1.0.6
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 modulefs
with fs-like objectvol
patchRequire
- rewritesrequire
function, patches Node'smodule
module to use a given fs-like object for module loading
License
Unlicense - public domain.
1.0.6
1 year ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.4.0
5 years ago
0.3.3
7 years ago
0.3.2
7 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago