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

12 lines
226 B
JavaScript

'use strict';
var _index = require('../index');
var myfs = {
readFileSync: function readFileSync() {
return 'hello world';
}
};
(0, _index.patchFs)(myfs);
console.log(require('fs').readFileSync('/foo/bar'));