MCPcopy
hub / github.com/GrapesJS/grapesjs / printRow

Function printRow

packages/cli/src/utils.ts:14–18  ·  view source on GitHub ↗
(str: string, { color = 'green', lineDown = 1 } = {})

Source from the content-addressed store, hash-verified

12export const isObject = (val: any) => val !== null && !Array.isArray(val) && typeof val === 'object';
13
14export const printRow = (str: string, { color = 'green', lineDown = 1 } = {}) => {
15 console.log('');
16 console.log(chalk[color].bold(str));
17 lineDown && console.log('');
18};
19
20export const printError = (str: string) => {
21 printRow(str, { color: 'red' });

Callers 9

utils.spec.tsFile · 0.90
serve.tsFile · 0.90
initPluginFunction · 0.90
init.tsFile · 0.90
buildLocaleFunction · 0.90
buildDeclarationFunction · 0.90
build.tsFile · 0.90
buildWebpackFunction · 0.90
printErrorFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected