MCPcopy Create free account
hub / github.com/11ty/dev-server / output

Method output

client/reload-client.js:13–22  ·  view source on GitHub ↗
(type, ...messages)

Source from the content-addressed store, hash-verified

11 Util.output("error", message, error);
12 }
13 static output(type, ...messages) {
14 let now = new Date();
15 let date = `${Util.pad(now.getUTCHours())}:${Util.pad(
16 now.getUTCMinutes()
17 )}:${Util.pad(now.getUTCSeconds())}.${Util.pad(
18 now.getUTCMilliseconds(),
19 3
20 )}`;
21 console[type](`[11ty][${date} UTC]`, ...messages);
22 }
23
24 static capitalize(word) {
25 return word.substr(0, 1).toUpperCase() + word.substr(1);

Callers 2

logMethod · 0.80
errorMethod · 0.80

Calls 1

padMethod · 0.80

Tested by

no test coverage detected