Skip to content
JS
Package

ansi-fragments

A tiny library with builders to help making logs/CLI pretty with a nice DX.

v0.2.1, 7 Apr 2019MITCommonJSTypes: NoneCLI tools and terminal utilities
$ npm install ansi-fragments

Key numbers

As of 25 Sept 2026
Weekly downloads
2.1m
+51% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
7 years ago
v0.2.1
GitHub stars
1
3 forks
Open issues / PRs
2 / 15
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.7m (18 Aug 2026)Low 665.5k (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.

2,124,790 downloads last week, 9,017,776 in the last month. The 12-month change of +51% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
04 in total
Latest version
0.2.1, 7 Apr 20197 years ago
First published
8 Jan 2019
Last push to GitHub
3 Jan 20231,360 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
15
Commits, last 52 weeks
0
Dependents on npm
358

Major versions

  1. v0 first release 0.1.0, 8 Jan 2019

Recent releases

VersionPublished
0.2.17 Apr 2019
0.1.17 Apr 2019
0.2.025 Jan 2019
0.1.08 Jan 2019
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
29 kB
Dependencies (3)
coloretteslice-ansistrip-ansi
npm install ansi-fragments
  • jsDelivrhttps://cdn.jsdelivr.net/npm/ansi-fragments@0.2.1/
  • unpkghttps://unpkg.com/ansi-fragments@0.2.1/
  • esm.shhttps://esm.sh/ansi-fragments@0.2.1
PackageWeekly downloadsGzipLast releaseModuleComparison
oclif251.3k-2 days agoCommonJS-
@moonrepo/cli156.4k-10 days ago--
trpc-cli174.5k-2 months agoESM only-
nestjs-console30.9k-1 year agoCommonJS-
cfonts621.3k-1 year agoCommonJS-
type-flag387.8k-6 days agoESM + CommonJS-
yoctocolors28.1m-1 month agoESM only-
yoctocolors-cjs21.5m-1 year agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.