npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

chalk-cli

3.0.0 • Public • Published

chalk-cli Build Status

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.

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

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

Related

  • chalk - API for this module

License

MIT © Sindre Sorhus

install

npm i chalk-cli

Downloadsweekly downloads

4,721

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability