MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / runOnFile

Function runOnFile

tools/unsafe_optimizations.mjs:233–238  ·  view source on GitHub ↗
(input, pretty = false, output = null)

Source from the content-addressed store, hash-verified

231}
232
233function runOnFile(input, pretty = false, output = null) {
234 let js = fs.readFileSync(input).toString();
235 js = runOnJsText(js, pretty);
236 if (output) fs.writeFileSync(output, js);
237 else console.log(js);
238}
239
240let numTestFailures = 0;
241

Callers 1

Calls 2

runOnJsTextFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected