MCPcopy Create free account
hub / github.com/browserify/static-module / withFS

Function withFS

bench/index.js:88–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 return fs.createReadStream(path.join(__dirname, './input.js'));
87}
88function withFS () {
89 return through(function (chunk, enc, next) {
90 next(null, chunk);
91 }, function (next) {
92 this.push('\nvar a, fs = require("fs"), x; fs.readFileSync("index.js");');
93 next();
94 });
95}
96
97function warmup (run, cb) {
98 var i = 5;

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…