MCPcopy Create free account
hub / github.com/Rich-Harris/code-red / read

Function read

test/test.js:476–477  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

474
475suite('print', (test) => {
476 const read = (file) =>
477 fs.existsSync(file) ? fs.readFileSync(file, 'utf-8') : null;
478
479 fs.readdirSync('test/samples').forEach((dir) => {
480 test(dir, async () => {

Callers 1

test.jsFile · 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…