chalk / wrap-ansi

Wordwrap a string with ANSI escape codes
MIT License
120 stars 25 forks source link

Hardwrap option #2

Closed sindresorhus closed 9 years ago

sindresorhus commented 9 years ago

Re: https://github.com/bcoe/cliui/issues/6#issuecomment-145318168

Example: https://github.com/substack/node-wordwrap#wraphardstart-stop

API:

wrapAnsi(input, columns, {hard: true});

?

bcoe commented 9 years ago

see: https://github.com/chalk/wrap-ansi/pull/3