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

9 lines
210 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'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('/'));