MCPcopy
hub / github.com/prettier/prettier / indent

Function indent

src/cli/usage.js:10–12  ·  view source on GitHub ↗
(str, spaces)

Source from the content-addressed store, hash-verified

8const CHOICE_USAGE_INDENTATION = 2;
9
10function indent(str, spaces) {
11 return str.replaceAll(/^/gm, " ".repeat(spaces));
12}
13
14function createDefaultValueDisplay(value) {
15 return Array.isArray(value)

Callers 15

embedFunction · 0.90
genericPrintFunction · 0.90
printExpandFunction · 0.90
printAttributesFunction · 0.90
printAngularIcuCaseFunction · 0.90
printChildrenDocFunction · 0.90
printDanglingCommentsFunction · 0.90
genericPrintFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…