MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / log

Function log

utils/scripts/dev.js:95–103  ·  view source on GitHub ↗
(label, msg)

Source from the content-addressed store, hash-verified

93}
94
95function log(label, msg) {
96 const reset = "\x1b[0m";
97 const green = "\x1b[92m";
98 const yellow = "\x1b[93m";
99 const blue = "\x1b[94m";
100 const colors = { info: blue, ok: green, warn: yellow };
101 const c = colors[label] || reset;
102 console.log(` ${c}[${label}]${reset} ${msg}`);
103}
104
105function resolveSpawnCommand(command) {
106 if (process.platform !== "win32") return command;

Callers 8

getDevCertFunction · 0.70
createServerFunction · 0.70
ensureCordovaFilesFunction · 0.70
launchAppFunction · 0.70
startRspackWatchFunction · 0.70
startPluginWatcherFunction · 0.70
applyPluginUpdatesFunction · 0.70
mainFunction · 0.70

Calls 1

logMethod · 0.80

Tested by

no test coverage detected