@tempots/std
canonicalizeNewlines() function
Replaces occurrances of \r\n
, \n\r
, \r
with \n
Signature:
canonicalizeNewlines: (value: string) => string
Parameters
Parameter |
Type |
Description |
---|---|---|
value |
string |
The string to normalize. |
Returns: string
The string with normalized line endings.