Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > Text > convertToCrLf

Text.convertToCrLf() method

Converts all newlines in the provided string to use Windows-style CRLF end of line characters.

Signature:

static convertToCrLf(input: string): string;

Parameters

Parameter

Type

Description

input

string

Returns:

string