Popularity
0.9
Growing
Activity
0.0
Stable
26
4
3
Code Quality Rank:
L5
Programming language: Swift
License: MIT License
Tags:
Colors
Colors alternatives and similar libraries
Based on the "Colors" category.
Alternatively, view Colors alternatives based on common mentions on social networks and blogs.
-
PrettyColors
Styles and colors text in the Terminal with ANSI escape codes. Conforms to ECMA Standard 48.
Get performance insights in less than 4 minutes
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Sponsored
scoutapm.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Colors or a related project?
README
Colors
A pure Swift library for using ANSI codes. Basically makes command-line coloring and styling very easy!
Note: Colors master
requires Xcode 7.3 / Swift 2.2.
Usage
Colors aims to have a simple and self-explanatory API.
import Colors
// one style
println("foo".red)
// multiple styles
println("foo".red.bold)
// multiple style sets
println("foo".red.bold + "bar".blue)
// grouped styling
println(("foo".red + "bar".blue).bold.underline)
// resets
println(("foo".red + "bar".blue).reset.red.underline.bold)