securityos/node_modules/fs-monkey/lib/demo/fs-1.js

9 lines
210 B
JavaScript

'use strict';
var _lib = require('../../../memfs/lib');
var _index = require('../index');
_lib.vol.fromJSON({ '/dir/foo': 'bar' });
(0, _index.patchFs)(_lib.vol);
console.log(require('fs').readdirSync('/'));