MCPcopy Index your code
hub / github.com/nodejs/node / getContent

Method getContent

test/common/wpt.js:383–386  ·  view source on GitHub ↗

* @returns {string}

()

Source from the content-addressed store, hash-verified

381 * @returns {string}
382 */
383 getContent() {
384 this.#content ||= fs.readFileSync(this.getAbsolutePath(), 'utf8');
385 return this.#content;
386 }
387
388 /**
389 * @returns {{ script?: string[]; variant?: string[]; [key: string]: string }} parsed META tags of a spec file

Callers 2

getMetaMethod · 0.95
runJsTestsMethod · 0.80

Calls 2

getAbsolutePathMethod · 0.95
readFileSyncMethod · 0.45

Tested by

no test coverage detected