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
- Host: GitHub
- URL: https://github.com/remirobert/color
- Owner: remirobert
- License: mit
- Created: 2016-01-13T16:03:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-16T13:57:15.000Z (over 10 years ago)
- Last Synced: 2025-06-14T04:05:40.698Z (12 months ago)
- Language: Swift
- Size: 67.4 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```