MCPcopy Create free account
hub / github.com/cli-table/cli-table3 / colorizeLines

Function colorizeLines

src/utils.js:312–322  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

310}
311
312function colorizeLines(input) {
313 let state = {};
314 let output = [];
315 for (let i = 0; i < input.length; i++) {
316 let line = rewindState(state, input[i]);
317 state = readState(line);
318 let temp = Object.assign({}, state);
319 output.push(unwindState(temp, line));
320 }
321 return output;
322}
323
324/**
325 * Credit: Matheus Sampaio https://github.com/matheussampaio

Callers

nothing calls this directly

Calls 3

rewindStateFunction · 0.85
readStateFunction · 0.85
unwindStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…