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

Parameter Type Description
input string  
newlineKind NewlineKind  

Returns:

string