Skip to content

A pure Swift library for using ANSI codes. Basically makes command-line coloring and styling very easy!

License

Notifications You must be signed in to change notification settings

icodeforlove/Colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A pure Swift library for using ANSI codes. Basically makes command-line coloring and styling very easy!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages