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

natty-ui

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

natty-ui

  • 0.12.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

NattyUI version

This is the beautiful, nice, nifty, fancy, neat, pretty, cool, rich, lovely, natty user interface you like to have for your command line applications. It contains elegant, simple and beautiful tools that enhance your command line interfaces functionally and aesthetically.

  • Gem: rubygems.org
  • Source: github.com
  • Help: rubydoc.info

Description

Here you find elegant, simple and beautiful tools that enhance your command line application functionally and look.

You can style your text using a BBCode-like syntax

 ui.puts '[b]Hello World![/b]' # bold
 ui.puts '[i]Hello World![/i]' # italic
 ui.puts '[u]Hello World![/u]' # underline
 ui.puts '[yellow on_blue]Hello World![/]'

which supports all ANSI attributes, colors in 3/4-bit, 8-bit and Truecolor. There are headers, rulers, diverse message types, framed blocks and tables to layout your text. You can organize the output of tasks, use progress bars and request and handle user input. And there are text animations for fame and fun!

🚀 Have a look at the features or check the code examples!

illustration

NO_COLOR Convention

NattyUI follows the NO_COLOR convention.

Help

📕 See the online help and have a look at the examples directory to learn from code.

Run Examples

You can execute the examples by

ruby ./examples/demo.rb

or see the non-ANSI version

NO_COLOR=1 ruby ./examples/demo.rb

Installation

You can install the gem in your system with

gem install natty-ui

or you can use Bundler to add NattyUI to your own project:

bundle add natty-ui

After that you only need one line of code to have everything together

require 'natty-ui'

FAQs

Package last updated on 18 Aug 2024

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