remirobert / Color

Swift package to manage AINSI color on terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color

Swift package to manage AINSI color on terminal


#Installation Put this line in your **Package.swift**: ```Swift import PackageDescription

let package = Package( name: "testColor", targets: [], dependencies: [ .Package(url: "https://github.com/remirobert/Color.git", majorVersion: 1), ] )


#How to use
```Swift
print("hello world" + Color.red)
print("hello world".addColor(Color.red))

//Chaining colors
print("hello world" + Color.black + Background.white + Style.bold)

About

Swift package to manage AINSI color on terminal

License:MIT License


Languages

Language:Swift 100.0%