Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icodeforlove/Colors
A pure Swift library for using ANSI codes. Basically makes command-line coloring and styling very easy!
https://github.com/icodeforlove/Colors
Last synced: about 1 month ago
JSON representation
A pure Swift library for using ANSI codes. Basically makes command-line coloring and styling very easy!
- Host: GitHub
- URL: https://github.com/icodeforlove/Colors
- Owner: icodeforlove
- License: mit
- Created: 2015-03-07T09:38:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T14:29:14.000Z (almost 8 years ago)
- Last Synced: 2024-11-30T19:25:21.726Z (about 2 months ago)
- Language: Swift
- Size: 17.6 KB
- Stars: 28
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - Colors - A pure Swift library for using ANSI codes. Basically makes command-line coloring and styling very easy! (Logging / Other Hardware)
- awesome-ios-star - Colors - A pure Swift library for using ANSI codes. Basically makes command-line coloring and styling very easy! (Logging / Other Hardware)
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.```swift
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)
```