项目
在 GitHub 查看 chalk-cli

chalk/chalk-cli
关于
让终端字符串样式处理更简单
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文chalk-cli

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.
--color, -c Force color support.
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
Related
- chalk - API for this package
Maintainers
探索相关项目
加载中…