Trim newlines from the start and/or end of a string
Detect the dominant newline character of a string
Stringify and write JSON to a file atomically
Remove final newline characters from a string
Wrap words to a specified length.
Similar to String#trim() but removes only newlines
Split lines into an array of lines
Normalize the newline characters in a string to `\n`
remark plugin to add break support, without needing spaces
A PassThrough stream that keeps track of last line written
Strip all newlines from the given string.
Parses lines from text, preserving line numbers, offsets and line endings.
Strip the final newline character from a string/buffer
Ensure a string has a single trailing newline based off it's dominant newline character.
Condense all string whitespace + options to preserve specific whitespace characters.
Extract a subset of lines from a string efficiently
Replace HTML <br> tags with newline characters.
Regular expression to split a newline delimited string.
remark-lint rule to warn when a newline at the end of a file is missing
Detect newline at end of file
powered by npms.io 🚀