MCPcopy
hub / github.com/GitbookIO/gitbook / indent

Function indent

packages/react-openapi/src/code-samples.ts:198–204  ·  view source on GitHub ↗
(code: string, spaces: number)

Source from the content-addressed store, hash-verified

196];
197
198function indent(code: string, spaces: number) {
199 const indent = ' '.repeat(spaces);
200 return code
201 .split('\n')
202 .map((line) => (line ? indent + line : ''))
203 .join('\n');
204}
205
206export function parseHostAndPath(url: string) {
207 try {

Callers 1

code-samples.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected