MCPcopy
hub / github.com/MagicMirrorOrg/MagicMirror / file

Method file

js/module.js:254–256  ·  view source on GitHub ↗

* Retrieve the path to a module file. * @param {string} file Filename * @returns {string} the file path

(file)

Source from the content-addressed store, hash-verified

252 * @returns {string} the file path
253 */
254 file (file) {
255 return `${this.data.path}/${file}`.replace("//", "/");
256 }
257
258 /**
259 * Load all required stylesheets by requesting the MM object to load the files.

Callers 5

nunjucksEnvironmentMethod · 0.95
loadFunction · 0.80
loadFileForModuleFunction · 0.80
getStylesFunction · 0.80
loadComplimentFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected