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

12 lines
226 B
JavaScript
Raw Permalink Normal View History

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