Split lines into an array of lines
MIT License
Bot releases are hidden (Show)
Published by sindresorhus over 3 years ago
https://github.com/sindresorhus/split-lines/compare/v2.1.0...v3.0.0
https://github.com/sindresorhus/split-lines/compare/v2.0.0...v2.1.0
Prepend `<br>` to newlines in a string
Parse CLI help output
Strip leading whitespace from each line in a string
Remove leading, trailing and repeated whitespace from a string
Normalize the newline characters in a string to `\n`
Strip the final newline character from a string/buffer
Split a string at one or more indices
Get the visual width of the widest line in a string - the number of columns required to display it
Pad each line in a stream
Indent each line in a string
Reverse minimist. Convert an object of options into an array of command-line arguments
Split a string on the first occurrence of a given separator
Trim newlines from the start and/or end of a string
Strip redundant indentation and indent the string