Home / Function/ normalizeLF() — astro Function Reference

normalizeLF() — astro Function Reference

Architecture documentation for the normalizeLF() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  d5916982_1917_15bf_30da_0a1674abf064["normalizeLF()"]
  a37e7fee_e130_2a00_6f99_81cf3cf65c83["utils.ts"]
  d5916982_1917_15bf_30da_0a1674abf064 -->|defined in| a37e7fee_e130_2a00_6f99_81cf3cf65c83
  style d5916982_1917_15bf_30da_0a1674abf064 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/errors/utils.ts lines 119–121

export function normalizeLF(code: string) {
	return code.replace(/\r\n|\r(?!\n)|\n/g, '\n');
}

Domain

Subdomains

Frequently Asked Questions

What does normalizeLF() do?
normalizeLF() is a function in the astro codebase, defined in packages/astro/src/core/errors/utils.ts.
Where is normalizeLF() defined?
normalizeLF() is defined in packages/astro/src/core/errors/utils.ts at line 119.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free