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

cork

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cork

  • 0.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Cork

A delightful CLI UI module.

Usage

board = Cork::Board.new()

You can use Cork to print simple messages.

board.puts('Hello World')

You can use notice to print notices to the user colored in green.

board.notice("We're out of 🍷.")

This is an example of Cork used to build a simple list.

board.section('Types of Wine') do
  board.labeled('Red', ['Shiraz', 'Merlot'])
  board.labeled('White', ['Gewürztraminer', 'Riesling'])
end
Types of Wine
  - Red:
    - Shiraz
    - Merlot
  - White:
    - Gewürztraminer
    - Riesling

This is an example of Cork used to print a warning with actions the user can take.

board.warn('Merlot is down to 1 oz', [
  'Purchase some more.'
])

board.print_warnings
[!] Merlot is down to 1 oz
    - Purchase some more.

FAQs

Package last updated on 11 Apr 2017

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