Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smart_colored

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart_colored

  • 1.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

smart_colored

Color and formatting in terminal

Synopsis

require 'smart_colored'

puts 'important'.colored.red
puts 'important'.colored.bold
puts 'important'.colored.red.bold
puts 'important'.colored.red_bold
puts 'important'.colored.red_bold_on_yellow

or

require 'smart_colored/extend'

puts 'important'.red
puts 'important'.bold
puts 'important'.red.bold
puts 'important'.red_bold
puts 'important'.red_bold_on_yellow

smart means you can apply format to string which already got formatting

require 'smart_colored/extend'

puts "sometimes there could be #{'very important'.bold.underline} text in simply important one".red
puts "white, #{'underlined red'.underline.red}, #{'inversed with background green'.inverse_green} and #{'bold blue'.bold_blue} on black background".white.on_black

Copyright (c) 2010-2011 Ivan Kuchin. See LICENSE.txt for details.

FAQs

Package last updated on 17 Dec 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc