@lucid-softworks/string-lines
v0.1.0
Published
Split text into lines across LF, CRLF, and CR newlines.
Maintainers
Readme
@lucid-softworks/string-lines
Split text into lines across LF, CRLF, and CR newlines.
import { lines } from "@lucid-softworks/string-lines";
lines("first\r\nsecond"); // ["first", "second"]See the exported types and tests for exact edge-case behavior.
