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

Function logImageInNode

docs/app/js/sanddance-app.js:58347–58358  ·  view source on GitHub ↗
(_ref2)

Source from the content-addressed store, hash-verified

58345 return message;
58346}
58347function logImageInNode(_ref2) {
58348 let { image , message ="" , scale =1 } = _ref2;
58349 let asciify = null;
58350 try {
58351 asciify = module.require("asciify-image");
58352 } catch (error) {}
58353 if (asciify) return ()=>asciify(image, {
58354 fit: "box",
58355 width: "".concat(Math.round(80 * scale), "%")
58356 }).then((data)=>console.log(data));
58357 return noop;
58358}
58359function logImageInBrowser(_ref3) {
58360 let { image , message ="" , scale =1 } = _ref3;
58361 if (typeof image === "string") {

Callers 1

imageMethod · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected