{"id":14069022,"url":"https://github.com/r-lib/crayon","last_synced_at":"2026-04-02T17:46:41.540Z","repository":{"id":21044981,"uuid":"24343686","full_name":"r-lib/crayon","owner":"r-lib","description":"🖍️ R package for colored terminal output — now superseded by cli","archived":false,"fork":false,"pushed_at":"2025-10-21T08:42:52.000Z","size":2543,"stargazers_count":323,"open_issues_count":0,"forks_count":38,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-14T04:37:56.435Z","etag":null,"topics":["r"],"latest_commit_sha":null,"homepage":"http://r-lib.github.io/crayon/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-lib.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-09-22T20:07:22.000Z","updated_at":"2025-12-31T08:12:43.000Z","dependencies_parsed_at":"2024-08-13T07:14:56.980Z","dependency_job_id":"ffdb11b3-46e2-47aa-95fa-8c1ca9292a7c","html_url":"https://github.com/r-lib/crayon","commit_stats":{"total_commits":296,"total_committers":19,"mean_commits":"15.578947368421053","dds":"0.17567567567567566","last_synced_commit":"1726eb8095453ea648cd508a548c9246de46d8b5"},"previous_names":["gaborcsardi/crayon"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/r-lib/crayon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fcrayon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fcrayon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fcrayon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fcrayon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lib","download_url":"https://codeload.github.com/r-lib/crayon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fcrayon/sbom","scorecard":{"id":756763,"data":{"date":"2025-08-11","repo":{"name":"github.com/r-lib/crayon","commit":"c13b8a04780d1658bff8071d0e8fd5f8e9338860"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/pkgdown.yaml:24","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/pr-commands.yaml:19","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/pr-commands.yaml:58","Info: topLevel permissions set to 'read-all': .github/workflows/R-CMD-check.yaml:14","Info: topLevel permissions set to 'read-all': .github/workflows/pkgdown.yaml:13","Info: topLevel permissions set to 'read-all': .github/workflows/pr-commands.yaml:9","Info: topLevel permissions set to 'read-all': .github/workflows/test-coverage.yaml:10"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/R-CMD-check.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/R-CMD-check.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/R-CMD-check.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/R-CMD-check.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/R-CMD-check.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pkgdown.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pkgdown.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pkgdown.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pkgdown.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pkgdown.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-commands.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pr-commands.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-commands.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pr-commands.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-commands.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pr-commands.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-commands.yaml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pr-commands.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-commands.yaml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pr-commands.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-commands.yaml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pr-commands.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-commands.yaml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pr-commands.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-commands.yaml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pr-commands.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-commands.yaml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/pr-commands.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/test-coverage.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/test-coverage.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/test-coverage.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/test-coverage.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/r-lib/crayon/test-coverage.yaml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  18 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T21:53:54.727Z","repository_id":21044981,"created_at":"2025-08-22T21:53:54.727Z","updated_at":"2025-08-22T21:53:54.727Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r"],"created_at":"2024-08-13T07:06:32.967Z","updated_at":"2026-04-02T17:46:41.521Z","avatar_url":"https://github.com/r-lib.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"\n## 🚀 crayon is now superseded by the cli package. 🚀\n\n\u003e Please use [cli](https://github.com/r-lib/cli) for new projects.\n\u003e\n\u003e crayon is still supported and will receive important bug fixes,\n\u003e but no new features.\n\n\u003ch1 align=\"center\"\u003e\n    \u003cbr\u003e\n    \u003cbr\u003e\n    \u003cimg width=\"400\" src=\"https://user-images.githubusercontent.com/660288/102484487-41cd2900-405e-11eb-87d4-65793ad9db6a.png\" alt=\"crayon\"\u003e\n    \u003cbr\u003e\n    \u003cbr\u003e\n    \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003e Stylish terminal output in R\n\n\u003c!-- badges: start --\u003e\n\n[![Lifecycle: superseded](https://img.shields.io/badge/lifecycle-superseded-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#superseded)\n[![](https://www.r-pkg.org/badges/version/crayon)](https://r-pkg.org/pkg/crayon)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/crayon)](https://r-pkg.org/pkg/crayon)\n[![R-CMD-check](https://github.com/r-lib/crayon/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-lib/crayon/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/r-lib/crayon/graph/badge.svg)](https://app.codecov.io/gh/r-lib/crayon)\n\u003c!-- badges: end --\u003e\n\nWith crayon it is easy to add color to terminal output, create styles for notes, warnings, errors; and combine styles.\n\nANSI color support is automatically detected and used. Crayon was largely\ninspired by [chalk](https://github.com/chalk/chalk).\n\n## Installation\n\nStable version:\n\n```r\ninstall.packages(\"crayon\")\n```\n\nDevelopment version:\n\n```r\npak::pak(\"r-lib/crayon\")\n```\n\n## Styles\n\nCrayon defines several styles that can be combined. Each style in the list\nhas a corresponding function with the same name.\n\n### General styles\n\n* `reset`\n* `bold`\n* `blurred` (usually called `dim`, renamed to avoid name clash)\n* `italic` (not widely supported)\n* `underline`\n* `inverse`\n* `hidden`\n* `strikethrough` (not widely supported)\n\n### Text colors\n\n* `black`\n* `red`\n* `green`\n* `yellow`\n* `blue`\n* `magenta`\n* `cyan`\n* `white`\n* `silver` (usually called `gray`, renamed to avoid name clash)\n\n### Background colors\n\n* `bgBlack`\n* `bgRed`\n* `bgGreen`\n* `bgYellow`\n* `bgBlue`\n* `bgMagenta`\n* `bgCyan`\n* `bgWhite`\n\n### Screenshot on OSX\n\n![](https://user-images.githubusercontent.com/660288/102484516-4d205480-405e-11eb-93fa-37a6cd6d4066.png)\n\n## Usage\n\nThe styling functions take any number of character vectors as arguments,\nand they concatenate and style them:\n\n```r\nlibrary(crayon)\ncat(blue(\"Hello\", \"world!\\n\"))\n```\n\nCrayon defines the `%+%` string concatenation operator to make it easy\nto assemble strings with different styles.\n\n```r\ncat(\"... to highlight the \" %+% red(\"search term\") %+% \" in a block of text\\n\")\n```\n\nStyles can be combined using the `$` operator:\n\n```r\ncat(yellow$bgMagenta$bold('Hello world!\\n'))\n```\n\nStyles can also be nested, and then inner style takes precedence:\n\n```r\ncat(green(\n  'I am a green line ' %+%\n  blue$underline$bold('with a blue substring') %+%\n  ' that becomes green again!\\n'\n))\n```\n  \nIt is easy to define your own themes:\n\n```r\nerror \u003c- red $ bold\nwarn \u003c- magenta $ underline\nnote \u003c- cyan\ncat(error(\"Error: subscript out of bounds!\\n\"))\ncat(warn(\"Warning: shorter argument was recycled.\\n\"))\ncat(note(\"Note: no such directory.\\n\"))\n```\n\n## 256 colors\n\nMost modern terminals support the ANSI standard for 256 colors,\nand you can define new styles that make use of them. The `make_style`\nfunction defines a new style. It can handle R's built in color names\n(see the output of `colors()`) as well as RGB specifications via the\n`rgb()` function. It automatically chooses the ANSI colors that\nare closest to the specified R and RGB colors, and it also has\na fallback to terminals with 8 ANSI colors only.\n\n```r\nivory \u003c- make_style(\"ivory\")\nbgMaroon \u003c- make_style(\"maroon\", bg = TRUE)\nfancy \u003c- combine_styles(ivory, bgMaroon)\ncat(fancy(\"This will have some fancy colors\"), \"\\n\")\n```\n\n![](https://user-images.githubusercontent.com/660288/102484539-53aecc00-405e-11eb-9f24-85b4c10b5e38.png)\n\n## License\n\nMIT @ Gábor Csárdi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fcrayon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lib%2Fcrayon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fcrayon/lists"}