Skip to content
JS
Package

slice-ansi

Slice a string with ANSI escape codes

v9.0.1, 18 Sept 2026MITESM onlyTypes: BundledCLI tools and terminal utilitiesLogging
$ npm install slice-ansi

Key numbers

As of 25 Sept 2026
Weekly downloads
84.5m
+55% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
6 days ago
v9.0.1
GitHub stars
51
17 forks
Open issues / PRs
0 / 0
Contributors
13
Commits, last 52 weeks
10

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150mSept 2025Mar 2026Sept 2026High 117.8m (25 Aug 2026)Low 34.1m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

84,540,479 downloads last week, 416,042,701 in the last month. The 12-month change of +55% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
317 in total
Latest version
9.0.1, 18 Sept 20266 days ago
First published
26 Sept 2015
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
10
Dependents on npm
1,003

Major versions

  1. v9 first release 9.0.0, 4 Apr 2026
  2. v8 first release 8.0.0, 10 Feb 2026
  3. v7 first release 7.0.0, 28 Oct 2023
  4. v6 first release 6.0.0, 24 Mar 2023
  5. v5 first release 5.0.0, 16 Apr 2021
  6. v4 first release 4.0.0, 16 Feb 2020
  7. v3 first release 3.0.0, 17 Sept 2019
  8. v2 first release 2.0.0, 16 Oct 2018
  9. v1 first release 1.0.0, 10 Jul 2017
  10. v0 first release 0.0.2, 26 Sept 2015

Recent releases

VersionPublished
9.0.118 Sept 2026
9.0.04 Apr 2026
8.0.010 Feb 2026
7.1.28 Sept 2025
7.1.029 Oct 2023
7.0.028 Oct 2023
6.0.024 Mar 2023
5.0.016 Apr 2021
4.0.016 Feb 2020
3.0.017 Sept 2019
2.1.025 Jan 2019
2.0.016 Oct 2018
1.0.010 Jul 2017
0.1.021 Jun 2017
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
31 kB
Dependencies (2)
ansi-stylesis-fullwidth-code-point
npm install slice-ansi
  • jsDelivrhttps://cdn.jsdelivr.net/npm/slice-ansi@9.0.1/
  • unpkghttps://unpkg.com/slice-ansi@9.0.1/
  • esm.shhttps://esm.sh/slice-ansi@9.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
yoctocolors28.1m-1 month agoESM only-
yoctocolors-cjs21.5m-1 year agoCommonJS-
ansi-gray1.8m-11 years agoCommonJS-
ansi-red1m-11 years agoCommonJS-
ansi-cyan884.9k-11 years agoCommonJS-
gradient-string1.6m-1 year ago--
cli-color2.5m-2 years ago--
ansi-escapes95m-7 months agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.