1.0.1 • Published 4 years ago
semo-plugin-chalk v1.0.1
semo-plugin-chalk
This is a Semo
plugin to provide chalk feature in command line
Installation
You can install this plugin globally
npm i -g @semo/cli semo-plugin-chalk
semo chalk --help
semo chalk [string] [style]
chalk
Options:
--template, -t Output chalk using template style
--demo Output chalk color demo
or you can even run it without installing it explicitily.
npm i -g @semo/cli
semo run chalk --
Usage
Check style keywords
semo chalk --demo
Output string without styles, like bash echo
semo chalk "hello world"
Output string using chalk style
semo chalk "hello world" blue
Output string using chalk composable API
semo chalk "hello world" blue.underline
Output string using chalk tagged template literal
semo chalk "{red hello} {green world}" -t
Configuration
You can set template option in configuration file .semorc.yml
$plugin:
chalk:
template: true