MCPcopy Index your code
hub / github.com/cli-table/cli-table3 / readState

Function readState

src/utils.js:86–95  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

84}
85
86function readState(line) {
87 let code = codeRegex(true);
88 let controlChars = code.exec(line);
89 let state = {};
90 while (controlChars !== null) {
91 updateState(state, controlChars);
92 controlChars = code.exec(line);
93 }
94 return state;
95}
96
97function unwindState(state, ret) {
98 let lastBackgroundAdded = state.lastBackgroundAdded;

Callers 1

colorizeLinesFunction · 0.85

Calls 2

codeRegexFunction · 0.85
updateStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…