trim-newlines77.9mMIT5.0.0Trim newlines from the start and/or end of a string
sindresorhusabout 2 years agonewlines, trim, newline, linebreak printable-characters6.7mUnlicense1.0.42A little helper for handling strings containing zero width control characters, ANSI styling, whitespaces, newlines, 💩, etc.
xplabout 3 years agostring width, string length, real string width, real string length eol7.6mMIT0.10.0Newline character converter
ryanve10 months agonewlines, eol, lf, cr trim-off-newlines5.4mMIT1.0.3Similar to String#trim() but removes only newlines
stevemaoabout 3 years agonewlines, trim, new-lines, newline condense-newlines5mMIT0.2.1Replace extraneous newlines with a single newline, or pass a specified number of newlines to use.
jonschlinkertabout 3 years agodocs, documentation, generate, generator