crayon:一个简单、灵活的 gem,提供开放式 API 以将彩色和样式输出打印到终端

时间:2021-07-14 11:40:41
【文件属性】:
文件名称:crayon:一个简单、灵活的 gem,提供开放式 API 以将彩色和样式输出打印到终端
文件大小:8KB
文件格式:ZIP
更新时间:2021-07-14 11:40:41
Ruby 蜡笔 1.2.0 描述 一个简单、灵活的 gem,提供开放式 API 以将彩色和样式输出打印到终端。 安装 将Crayon添加到您的 Gemfile gem "crayon" 或者下载并安装这个 gem ~$ gem install crayon 使用示例 以下是Crayon理解的所有方法,应该让您了解什么是可能的。 Crayon.blue("this will be printed as blue text") Crayon.on_red("this will be printed on a red background") Crayon.bold("this will be bold") Crayon.underline_blue_on_yellow("this will be underlined blue text on a yellow background")
【文件预览】:
crayon-master
----.gitignore(15B)
----.document(35B)
----crayon.gemspec(964B)
----.travis.yml(59B)
----LICENSE.txt(1KB)
----spec()
--------spec_helper.rb(158B)
--------crayon()
----README.md(2KB)
----lib()
--------crayon.rb(648B)
--------crayon()
----Gemfile(91B)
----Rakefile(115B)
----Gemfile.lock(557B)

网友评论