wrap-ansi
Wordwrap a string with ANSI escape codes
smartwrap
Textwrap for javascript/nodejs. Correctly handles wide characters (宽字符) and emojis (😃). Wraps strings with option to break on words.
@thi.ng/transducers
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations