MCPcopy Index your code
hub / github.com/microsoft/SandDance / decorateMessage

Function decorateMessage

docs/app/js/sanddance-app.js:58339–58346  ·  view source on GitHub ↗
(id, message, opts)

Source from the content-addressed store, hash-verified

58337 }, opts.opts);
58338}
58339function decorateMessage(id, message, opts) {
58340 if (typeof message === "string") {
58341 const time = opts.time ? (0, _formatters.leftPad)((0, _formatters.formatTime)(opts.total)) : "";
58342 message = opts.time ? "".concat(id, ": ").concat(time, " ").concat(message) : "".concat(id, ": ").concat(message);
58343 message = (0, _color.addColor)(message, opts.color, opts.background);
58344 }
58345 return message;
58346}
58347function logImageInNode(_ref2) {
58348 let { image , message ="" , scale =1 } = _ref2;
58349 let asciify = null;

Callers 1

_getLogFunctionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected