Normalizes all line endings in a string.
The value containing line endings to normalize.
Optional
Optional target line ending. Supported values are "\n", "\r\n", "\r", and "\n\r". Defaults to "\n".
"\n"
"\r\n"
"\r"
"\n\r"
A string with normalized line endings.
0.14.0
TypeError If value is null or undefined, or newlineType is not a supported newline string.
Normalizes all line endings in a string.