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 utility for wrapping text containing styled hyperlinks to fit within terminal column constraints.
@generates
/**
* Wraps text containing styled hyperlinks to fit within a specified column width.
* Preserves ANSI escape codes for both hyperlinks and text styling (colors, bold, etc.)
* across line breaks.
*
* @param {string} text - The text to wrap, may contain ANSI hyperlinks and style codes
* @param {number} columns - The maximum column width for wrapping
* @returns {string} The wrapped text with preserved formatting
*/
function wrapStyledLinks(text, columns) {
// IMPLEMENTATION HERE
}
module.exports = { wrapStyledLinks };Provides text wrapping with ANSI escape code preservation, including support for hyperlinks and nested styling.
@satisfied-by