wrap-ansi intelligently wraps text to a specified number of columns, taking ANSI escape codes into account. This ensures that styling is preserved across line breaks without unintended visual artifacts. Useful for formatting terminal output, the package correctly handles color codes and other ANSI sequences, preventing them from disrupting the layout. wrap-ansi helps you create readable and visually consistent console applications.
Wrap-ansi's release frequency is inconsistent. Initial bursts in 2015, 2017, and 2019 are followed by periods of inactivity. Releases have become less frequent since 2019, with only occasional updates in 2020, 2021, 2023. There have been no releases in 2024 or through August 2025.
Wrap-ansi's npm downloads show a general upward trend from March 2024 to September 2025. Starting at 461 million, downloads consistently increased, peaking in July 2025 at 928 million. August 2025 saw a dip, but September 2025 already shows strong numbers which implies another peak soon.