Search results

1000+ packages found

ANSI escape codes for styling strings in the terminal

published version 6.2.1, 3 years ago3850 dependents licensed under $MIT
1,655,670,560

Regular expression for matching ANSI escape codes

published version 6.1.0, 9 months ago3367 dependents licensed under $MIT
1,018,662,289

Strip ANSI escape codes from a string

published version 7.1.0, 2 years ago9672 dependents licensed under $MIT
1,074,202,946

Get the visual width of a string - the number of columns required to display it

published version 7.2.0, a year ago6727 dependents licensed under $MIT
894,409,299

Wordwrap a string with ANSI escape codes

published version 9.0.0, 2 years ago6347 dependents licensed under $MIT
823,915,744

Escape RegExp special characters

published version 5.0.0, 4 years ago5441 dependents licensed under $MIT
718,479,101

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.

published version 3.1.0, 6 months ago2119 dependents licensed under $MIT
361,984,002

ANSI escape codes for manipulating the terminal

published version 7.0.0, a year ago2724 dependents licensed under $MIT
292,990,788

Slice a string with ANSI escape codes

published version 7.1.0, 2 years ago1044 dependents licensed under $MIT
258,833,305

Escape string for use in HTML

published version 1.0.3, 10 years ago3141 dependents licensed under $MIT
172,582,820

Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes

published version 6.0.0, 2 years ago1205 dependents licensed under $MIT
150,780,418

fast and safe way to escape and unescape &<>'" chars

published version 3.0.3, 4 years ago1186 dependents licensed under $MIT
156,994,474

A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.

published version 3.0.0, 6 years ago934 dependents licensed under $MIT
146,369,269

ANSI escape codes for some terminal swag

published version 1.0.5, 5 years ago1149 dependents licensed under $MIT
135,335,526

Get the visual width of the widest line in a string - the number of columns required to display it

published version 5.0.0, 2 years ago595 dependents licensed under $MIT
72,065,185

Easy way to split a string on a given character unless it's quoted or escaped.

published version 6.1.0, 6 years ago858 dependents licensed under $MIT
53,557,982

Create clickable links in the terminal

published version 4.0.0, 2 months ago1923 dependents licensed under $MIT
54,907,500

Check if a string has ANSI escape codes

published version 6.0.0, a year ago495 dependents licensed under $MIT
58,811,643

micromark utility to decode markdown strings

published version 2.0.1, 7 months ago26 dependents licensed under $MIT
37,025,441

Escape a string for use in HTML or the inverse

published version 4.0.0, 4 years ago540 dependents licensed under $MIT
31,863,393