Displaying 1 to 4 from 4 results

detect-newline - Detect the dominant newline character of a string

  •    Javascript

Returns detected newline or null when no newline character is found.Returns detected newline or \n when no newline character is found.

eol - JavaScript newline character converter

  •    Javascript

Newline character converter for JavaScript. Available on npm. Coercing eol.auto|eol.crlf|eol.lf|eol.cr to string yields the appropriate character. This is useful for joining.