29

GitHub - mxcl/Chalk: Terminal colors using Swift 5’s string interpolation extens...

 5 years ago
source link: https://github.com/mxcl/Chalk
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Chalk

Terminal colors using Swift 5’s string interpolation extensions.

print("Hi my name is \(name, color: .blue) and I live in Savannah, GA")
print("Hi my name is \(name, color: .blue, style: .bold) and I live in Atlanta, GA")
print("Hi my name is \(name, color: .blue, style: .underline) and I live on Mars")

Screenshot.png

Name

Chalk by @sindresorhus is an extremely famous Node package for the same purpose. Open source is facilitated by naming connections, we picked the same name to enable those mental connections.

This package is called Chalk, or mxcl/Chalk or Chalk for Swift when disambiguating.

Support mxcl

Hey there, I’m Max Howell, a prolific producer of open source and probably you already use some of it (I created brew). I work full-time on open source and it’s hard; currently I earn less than minimum wage. Please help me continue my work, I appreciate it ??

68747470733a2f2f63352e70617472656f6e2e636f6d2f65787465726e616c2f6c6f676f2f6265636f6d655f615f706174726f6e5f627574746f6e4032782e706e67

Other ways to say thanks.

Installation

SwiftPM:

package.append(.package(url: "https://github.com/mxcl/Chalk.git", from: "0.1.0"))

Carthage:

Waiting on: @Carthage#1945.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK