lurq

npm package

Home

slice-ansi

slice-ansi is a utility for slicing strings that contain ANSI escape codes, ensuring that the visual representation remains intact. It is particularly useful when working with styled terminal output, allowing developers to extract specific portions of text without disrupting the formatting. This package is ideal for applications that need to manipulate styled strings in a terminal environment.

lurq health score
66/100
Confidence
proven
Weekly downloads
82,459,822
Latest version
9.0.0
Last release
Apr 4, 2026
License
MIT

Should you depend on slice-ansi?

lurq's verdict: low

  • No known advisories

Check this from your coding agent

This page is a daily snapshot. lurq's verify tool checks slice-ansi at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:

npx lurqrun

Free to start. Quickstart

Upgrading slice-ansi

What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.

Other linting packages lurq scores

Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 16, 2026; this page refreshes every 168 hours. Source repository.