MCPcopy
hub / github.com/compodoc/compodoc / read

Function read

test/src/helpers.ts:11–13  ·  view source on GitHub ↗
(file: string, encoding = null)

Source from the content-addressed store, hash-verified

9export const pkg = require('../../../../package.json');
10
11export function read(file: string, encoding = null): string {
12 return fs.readFileSync(file, encoding).toString();
13}
14
15export function exists(file: string): boolean {
16 return fs.existsSync(file);

Calls

no outgoing calls

Tested by 1

checkWcMenuFileFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…