crayon
1.5.3Colored Terminal Output
Overview
The crayon package is now superseded. Please use the 'cli' package for new projects. Colored terminal output on terminals that support 'ANSI' color and highlight codes. It also works in 'Emacs' 'ESS'. 'ANSI' color support is automatically detected. Colors and highlighting can be combined and nested. New styles can also be created easily. This package was inspired by the 'chalk' 'JavaScript' project.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 90%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/r-lib/crayon on 2026-07-19.
Dependencies
and 343 more packages.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 29 max
- Test cases
- 43 / 0.26 per code line
Test coverage
Line coverage
50%
Expression
51.1%
Tests / Examples
49.7% / 43% ex
Functions
89 21 exported
Complexity
3.3 avg / 29 max
Call network
89 nodes / 91 edges
Call graph
Open call graph →Lowest coverage
89 functions| Function | Cyclo | Coverage |
|---|---|---|
| chr exp | 1 | 0% |
| finish exp | 1 | 0% |
| show_ansi_colors exp | 3 | 0% |
| %||% | 2 | 0% |
| -.crayon | 4 | 0% |
| ansi_colors_256 | 1 | 0% |
People & History
15 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.5.3Latest
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.5.22022-09-29 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.5.12022-03-26 · diff ↗
- 1.5.02022-02-14 · diff ↗
- 1.4.22021-10-30 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.4.12021-02-08 · diff ↗
- 1.4.02021-01-30 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
Show 12 earlier events
- 1.3.42017-09-16 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 1.3.22016-06-28 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 1.3.12015-07-13 · diff ↗
- 1.3.02015-06-05 · diff ↗
- 1.2.12015-05-18 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 1.2.02015-04-09 · diff ↗
- 1.1.02014-10-15 · diff ↗
- 1.0.02014-09-23
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-09-23
- Total releases
- 15 / 12 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 39 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet