github.com/fatih/color
go
pkg:golang/github.com/fatih/color
267 Dependabot PRs
23 days ago
170 repositories
13 repositories
Recent PRs
Bump github.com/fatih/color from 1.17.0 to 1.19.0
Bump the non-kubernetes group across 2 directories with 28 updates
kubernetes/autoscaler #9650
Bump the all-dependencies group across 1 directory with 32 updates
istio/istio #60215
chore(deps): Bump the go-dependencies group across 1 directory with 16 updates
dirien/minectl-sdk #442
deps(deps): bump the gomod-minor-and-patch group across 1 directory with 32 updates
build(deps): bump the non-elastic group across 1 directory with 37 updates
build(deps): Bump the go-deps group across 1 directory with 6 updates
hermanu/logz #1
chore: bump the go-minor-patch group across 1 directory with 3 updates
chore(deps): bump github.com/fatih/color from 1.18.0 to 1.19.0
RalianENG/kojuto #19
deps(deps): bump github.com/fatih/color from 1.18.0 to 1.19.0
scttfrdmn/prism #616
[release-1.17][gomod]: Bump the minor group across 1 directory with 9 updates
openshift-knative/kn-plugin-event #1139
chore(deps): bump the go group across 3 directories with 24 updates
hashicorp/boundary #6680
Bump the go-minor-and-patch-updates group across 1 directory with 9 updates
chore(deps): bump the go-minor group across 1 directory with 7 updates
Benny93/axon-go #11
Bump the go group with 9 updates
grafana/grafanactl #264
deps: bump the go-minor-updates group with 5 updates
ravinald/wifimgr #35
chore(deps): bump the common group across 1 directory with 52 updates
xycloops123/trivy #410
build(deps): bump github.com/fatih/color from 1.18.0 to 1.19.0 in /tools
yuuan/asynq #11
chore(deps): bump the common group across 1 directory with 10 updates
aquasecurity/trivy #10532
Bump the go-modules group across 1 directory with 71 updates
paketo-buildpacks/bundle-install #792
deps(deps): bump github.com/fatih/color from 1.18.0 to 1.19.0
androvonx95/DEPIN_Network_Mini_Project #6
chore(deps): bump the go group across 3 directories with 20 updates
hashicorp/boundary #6586
Bump the go-dependencies group across 1 directory with 41 updates
jmorris0x0/terraform-provider-k8sconnect #166
Bump the go-modules group across 1 directory with 65 updates
paketo-buildpacks/cpython #1234
Bump the go-modules group across 1 directory with 65 updates
Bump the go-modules group across 1 directory with 66 updates
paketo-buildpacks/miniconda #795
Bump the go-modules group across 1 directory with 71 updates
paketo-buildpacks/go-dist #1296
chore(deps): bump the go-modules group across 1 directory with 82 updates
paketo-buildpacks/python-package-managers-install #142
Bump the go-modules group across 1 directory with 67 updates
Bump the go-modules group across 1 directory with 75 updates
paketo-buildpacks/dotnet-publish #983
Bump the go-modules group across 1 directory with 72 updates
paketo-buildpacks/dotnet-core-sdk #1102
Bump the go-modules group across 1 directory with 72 updates
paketo-buildpacks/bundle-install #787
Bump the go-modules group across 1 directory with 82 updates
paketo-buildpacks/poetry-install #646
Bump github.com/fatih/color from 1.18.0 to 1.19.0
Bump the go-modules group across 1 directory with 86 updates
paketo-buildpacks/pip-install #678
chore(deps): bump the common group across 1 directory with 11 updates
aquasecurity/trivy #10503
deps(go): bump github.com/fatih/color from 1.18.0 to 1.19.0
sg-benchmarks/grafana--26d36ec #60
chore(deps): bump the go-modules group across 1 directory with 74 updates
paketo-buildpacks/python-package-managers-run #116
Bump the go-modules group across 1 directory with 64 updates
paketo-buildpacks/bundle-install #786
chore(deps): bump the go-modules group across 1 directory with 66 updates
paketo-buildpacks/python-package-managers-install #140
Bump the go-modules group across 1 directory with 69 updates
paketo-buildpacks/go-dist #1286
Bump the go-modules group across 1 directory with 63 updates
paketo-buildpacks/conda-env-update #573
chore(deps): bump the go-modules group across 1 directory with 63 updates
paketo-buildpacks/python-package-managers-install #138
Bump the go-modules group across 1 directory with 65 updates
paketo-buildpacks/go-dist #1285
chore(deps): bump the go-modules group across 1 directory with 60 updates
paketo-buildpacks/python-package-managers-run #113
Bump the go-modules group across 1 directory with 57 updates
paketo-buildpacks/bundler #1045
Bump the go-modules group across 1 directory with 57 updates
paketo-buildpacks/mri #1165
Bump the go-modules group across 1 directory with 56 updates
paketo-buildpacks/npm-install #1209
chore(deps): bump the go-modules group across 1 directory with 57 updates
paketo-buildpacks/python-package-managers-install #137
Bump the go-modules group across 1 directory with 58 updates
Package Details
| Name: | github.com/fatih/color |
| Ecosystem: | go |
| PURL Type: | golang |
| Package URL: | pkg:golang/github.com/fatih/color |
| JSON API: | View JSON |
Package Information
Package color is an ANSI color package to output colorized or SGR defined output to the standard output. The API can be used in several way, pick one that suits you. Use simple and default helper functions with predefined foreground colors: However, there are times when custom color mixes are required. Below are some examples to create custom color objects and use the print functions of each separate color object. You can create PrintXxx functions to simplify even more: You can also FprintXxx functions to pass your own io.Writer: Or create SprintXxx functions to mix strings with other non-colorized strings: Windows support is enabled by default. All Print functions work as intended. However, only for color.SprintXXX functions, user should use fmt.FprintXXX and set the output to color.Output: Using with existing code is possible. Just use the Set() method to set the standard output to the given parameters. That way a rewrite of an existing code is not required. There might be a case where you want to disable color output (for example to pipe the standard output of your app to somewhere else). `Color` has support to disable colors both globally and for single color definition. For example suppose you have a CLI app and a `--no-color` bool flag. You can easily disable the color output with: You can also disable the color by setting the NO_COLOR environment variable to any value. It also has support for single color definitions (local). You can disable/enable color output on the fly:
| Repository: | https://github.com/fatih/color |
| Homepage: | https://github.com/fatih/color |
| Latest Release: |
v1.18.0
over 1 year ago |
| Dependent Repos: | 101,086 |
| Dependent Packages: | 39,081 |
| Ranking: | Top 0.011% by dependent repos Top 0.0058% by dependent pkgs |