tessl install tessl/npm-wrap-ansi@9.0.0Wordwrap a string with ANSI escape codes
Agent Success
Agent success rate when using this tile
100%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.04x
Baseline
Agent success rate without this tile
96%
A terminal message formatting utility that wraps and displays mixed content including styled text, emoji, and clickable hyperlinks to fit within specified column widths.
@generates
/**
* Formats a terminal message by wrapping it to a specified column width
* while preserving ANSI codes, emoji, and hyperlinks.
*
* @param {string} message - The message to format (may contain ANSI codes, emoji, hyperlinks)
* @param {number} columns - The maximum column width for wrapping
* @returns {string} The formatted message with preserved styling and functionality
*/
function formatMessage(message, columns) {
// IMPLEMENTATION HERE
}
module.exports = { formatMessage };Provides text wrapping with ANSI escape code support.