MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / renderFile

Method renderFile

lib/utilities/markdown-color.js:53–62  ·  view source on GitHub ↗
(filePath, options)

Source from the content-addressed store, hash-verified

51 @param {Object} [options]
52 */
53 renderFile(filePath, options) {
54 let file;
55 try {
56 file = fs.readFileSync(filePath, 'utf-8');
57 } catch (e) {
58 throw new SilentError(`The file '${filePath}' doesn't exist. Please check your filePath`);
59 }
60
61 return this.render(file, options);
62 }
63
64 /*
65 Parse markdown and output as string

Callers 3

printDetailedHelpFunction · 0.95
blueprint-test.jsFile · 0.80

Calls 1

renderMethod · 0.95

Tested by

no test coverage detected