Rush StackShopBlogEvents
Skip to main content

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

Text.convertTo() method

Converts all newlines in the provided string to use the specified newline type.

Signature:

static convertTo(input: string, newlineKind: NewlineKind): string;

Parameters

ParameterTypeDescription
inputstring
newlineKindNewlineKind

Returns:

string