0.0.1 • Published 10 years ago
virtual-fs v0.0.1
virtual-fs
Abstraction for fs virtual usage
Usage
var Vfs = require('virtual-fs')
var vfs = new Vfs({
'readme': 'hello!',
'license': 'mit',
'node_modules': {
'lodash': 'lodash.js'
}
}, 'node_modules')
vfs.readFileSync('lodash/lodash.js')
vfs.writeFile('/readme', 'damn', function(err){/**/})
API Supported
- writeFile
- readFile
- unlink
- mkdir
- readdir
- rmdir
- stat