Home > @microsoft/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

Parameter Type Description
input string  

Returns:

string