CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-wrap-ansi

Wordwrap a string with ANSI escape codes

Overall
score

100%

Overview
Eval results
Files

Evaluation results

100%

Terminal Text Formatter with Style Preservation

Multiple ANSI escape sequence type support

Criteria
Without context
With context

Uses wrap-ansi

100%

100%

Correct function signature

100%

100%

Plain text wrapping

100%

100%

SGR code preservation

100%

100%

OSC 8 hyperlink preservation

100%

100%

Mixed escape sequences

100%

100%

100%

Terminal Output Formatter

ANSI escape code preservation during wrapping

Criteria
Without context
With context

Uses wrapAnsi function

100%

100%

Passes required parameters

100%

100%

ANSI code preservation

100%

100%

Hard wrapping option

100%

100%

Handles wrapped output

100%

100%

Test case coverage

100%

100%

100%

Terminal Column Formatter

Basic text wrapping to specified column width

Criteria
Without context
With context

Uses wrapAnsi function

100%

100%

Passes text parameter

100%

100%

Passes columns parameter

100%

100%

Handles plain text

100%

100%

Handles ANSI codes

100%

100%

Returns wrapped output

100%

100%

100%

Styled Terminal Link Wrapper

Nested ANSI codes within hyperlinks

Criteria
Without context
With context

Uses wrapAnsi function

100%

100%

Correct function signature

100%

100%

Hyperlink preservation

100%

100%

Nested style handling

100%

100%

Minimal custom logic

100%

100%

100%

Text Formatter for Terminal Output

Whitespace trimming on wrapped lines

Criteria
Without context
With context

Uses wrapAnsi function

100%

100%

Passes columns parameter

100%

100%

Uses trim option

100%

100%

Maps preserveWhitespace parameter

100%

100%

Handles default behavior

100%

100%

Returns wrapped result

100%

100%

No reimplementation

100%

100%

100%

Terminal Text Formatter

Configuration via trim option

Criteria
Without context
With context

Uses wrapAnsi function

100%

100%

Implements clean mode

100%

100%

Implements preserve mode

100%

100%

Maps options correctly

100%

100%

Passes columns parameter

100%

100%

Returns wrapped result

100%

100%

100%

Rich Terminal Message Formatter

Mixed content handling (emoji + ANSI + hyperlinks)

Criteria
Without context
With context

Import wrap-ansi

100%

100%

Use wrapAnsi function

100%

100%

Preserve ANSI codes

100%

100%

Preserve emoji

100%

100%

Preserve hyperlinks

100%

100%

100%

Terminal Status Display Formatter

Visual width calculation ignoring ANSI codes

Criteria
Without context
With context

Uses wrapAnsi function

100%

100%

Passes column width

100%

100%

Handles hard wrapping

100%

100%

Preserves ANSI codes

100%

100%

Returns wrapped string

100%

100%

100%

Text Wrapper with Whitespace Configuration

Edge case handling for whitespace-only input

Criteria
Without context
With context

Uses wrapAnsi function

100%

100%

Passes trim option

100%

100%

Handles trim enabled

100%

100%

Handles trim disabled

100%

100%

Correct parameter order

100%

100%

100%

40%

Text Wrapping with Optimized Line Breaks

Hard wrapping optimization algorithm

Criteria
Without context
With context

Uses wrap-ansi package

100%

100%

Enables hard wrapping

100%

100%

Passes correct parameters

100%

100%

Leverages optimization algorithm

0%

100%

Returns wrapped output

0%

100%

Install with Tessl CLI

npx tessl i tessl/npm-wrap-ansi
Evaluated
Agent
Codex

Table of Contents