padMultilineString() — astro Function Reference
Architecture documentation for the padMultilineString() function in util.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD f2e835a3_d067_d98a_910d_979763216ef0["padMultilineString()"] a3824e79_205c_305b_a44f_edee1ef5faa4["util.ts"] f2e835a3_d067_d98a_910d_979763216ef0 -->|defined in| a3824e79_205c_305b_a44f_edee1ef5faa4 style f2e835a3_d067_d98a_910d_979763216ef0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/util.ts lines 39–42
export function padMultilineString(source: string, n = 2) {
const lines = source.split(/\r?\n/);
return lines.map((l) => ` `.repeat(n) + l).join(`\n`);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does padMultilineString() do?
padMultilineString() is a function in the astro codebase, defined in packages/astro/src/core/util.ts.
Where is padMultilineString() defined?
padMultilineString() is defined in packages/astro/src/core/util.ts at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free