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

cli-style

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-style

A simple tool allows you to set styles to command line output more easier.

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
84
decreased by-32.26%
Maintainers
1
Weekly downloads
 
Created
Source

cli-style

A simple tool allows you to set styles to command line output more easier.

Installation

$ npm i cli-style --save

Usage

This gadget is based on chalk, and color, bgcolor|bg, underline, bold, italic, strikethrough, dim can be used as options in cli-style, but only HEX and Keyword color modes can be used.

const style = require( 'cli-style' );

const str = style( 'this is a green bold string with an underline in white background', {
    color : 'green',
    bold : true,
    underline : true,
    bg : '#FFFFFF'
} );

console.log( str );

Keywords

FAQs

Package last updated on 06 Sep 2018

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