You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			| 
				
					
						 | 
			4 years ago | |
|---|---|---|
| .. | ||
| docs/api | 4 years ago | |
| lib | 4 years ago | |
| CHANGELOG.md | 4 years ago | |
| LICENSE | 4 years ago | |
| README.md | 4 years ago | |
| package.json | 4 years ago | |
		
			
				
				README.md
			
		
		
	
	fs-monkey
Monkey-patches for filesystem related things.
- Rewrite 
requirefunction to load Node's modules from memory. - Or rewrite the whole 
fsfilesystem 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 modulefswith fs-like objectvolpatchRequire- rewritesrequirefunction, patches Node'smodulemodule to use a given fs-like object for module loading
License
Unlicense - public domain.