ensureLfEndings
Ensures that a string has LF line endings.
It replaces CRLF line endings with LF.
Import:
import { ensureLfEndings } from 'obsidian-dev-utils/string';Signature:
function ensureLfEndings(str: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
str | string | The string. |
Returns: string — The string with LF line endings.