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

Function readFile

src/utility.mjs:228–230  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

226}
227
228export function readFile(filename) {
229 return fs.readFileSync(filename, 'utf8');
230}
231
232// Use import.meta.dirname here once we drop support for node v18.
233const __dirname = url.fileURLToPath(new URL('.', import.meta.url));

Callers 9

preprocessor.mjsFile · 0.90
compiler.mjsFile · 0.90
shouldPreprocessFunction · 0.90
getIncludeFileFunction · 0.90
preprocessFunction · 0.90
loadStructInfoFunction · 0.90
readFunction · 0.70
loadSettingsFileFunction · 0.70
libwasmfs.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected