Rush StackShopBlogEvents
Skip to main content

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

Text.convertToLf() method

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

POSIX is a registered trademark of the Institute of Electrical and Electronic Engineers, Inc.

Signature:

static convertToLf(input: string): string;

Parameters

ParameterTypeDescription
inputstring

Returns:

string