Socket
Socket
Sign inDemoInstall

chalk-cli

Package Overview
Dependencies
5
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chalk-cli

Terminal string styling done right


Version published
Weekly downloads
6.8K
increased by3.16%
Maintainers
2
Install size
1.15 MB
Created
Weekly downloads
 

Readme

Source

chalk-cli Downloads run on repl.it

Terminal string styling done right

Install

npm install --global chalk-cli

Usage

$ chalk --help

  Usage
    $ chalk <style> ... <string>
    $ echo <string> | chalk <style> ...

  Options
    --template, -t    Style template. The `~` character negates the style.
    --stdin           Read input from stdin rather than from arguments.
    --no-newline, -n  Don't emit a newline (`\n`) after the input.
    --demo            Demo of all Chalk styles.

  Examples
    $ chalk red bold 'Unicorns & Rainbows'
    $ chalk -t '{red.bold Unicorns & Rainbows}'
    $ chalk -t '{red.bold Dungeons and Dragons {~bold.blue (with added fairies)}}'
    $ echo 'Unicorns from stdin' | chalk --stdin red bold

See supported styles.

Template syntax

  • {red.bold unicorn}
  • {red.bold unicorns} are {blue FUN!!!}
  • {red.bold unicorn {blue.underline dancing}}
  • {red red {~red normal}}
  • {red hey\} still red} not red
  • {red hey\\} not red
  • chalk - API for this module

Maintainers

Keywords

FAQs

Last updated on 18 Mar 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc