An open API service indexing awesome lists of open source software.

https://github.com/remirobert/color

Swift package to manage AINSI color on terminal
https://github.com/remirobert/color

Last synced: 12 months ago
JSON representation

Swift package to manage AINSI color on terminal

Awesome Lists containing this project

README

          

[](#logo)

## 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)
```