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
Get the visual width of the widest line in a string - the number of columns required to display it
Strip redundant indentation and indent the string
Reverse minimist. Convert an object of options into an array of command-line arguments
Trim newlines from the start and/or end of a string
Remove leading, trailing and repeated whitespace from a string
Strip leading whitespace from each line in a string
Split a string at one or more indices
Normalize the newline characters in a string to `\n`
Split a string on the first occurrence of a given separator
Strip the final newline character from a string/buffer
Parse CLI help output
Pad each line in a stream
Prepend `<br>` to newlines in a string
Indent each line in a string