MCPcopy
hub / github.com/tj/commander.js / red

Function red

tests/help.style.test.js:5–8  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3import { Command } from '../index.js';
4
5function red(str) {
6 // Use plain characters so not stripped in failure messages. (Means displayWidth is bogus though.)
7 return `RED ${str} DER`;
8}
9function stripRed(str) {
10 return str.replace(/RED /g, '').replace(/ DER/g, '');
11}

Callers 2

help.style.test.jsFile · 0.85
makeProgramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected