chalk/wrap-ansi




The issue has been closed
Newline handling in 6.0.0 #39
unindented posted onGitHub
In wrap-ansi@5.0.0
all newlines are converted properly:
const wrapAnsi = require("wrap-ansi@5.0.0")
console.log(wrapAnsi('a\r\n\r\nb', 5)) // outputs "a\n\nb"
In wrap-ansi@6.0.0
not all newlines are converted:
const wrapAnsi = require("wrap-ansi@6.0.0")
console.log(wrapAnsi('a\r\n\r\nb', 5)) // outputs "a\r\n\nb"