1.0.6 • Published 4 months ago

easy-chalk v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

npm.io

说明(Illustrate)

  • 欢迎使用终端简单字符串样式定义工具方法 easy-chalk (Welcome to the terminal easy string style definition tool method easy-chalk)

  • 代码只有大概1kb,使用非常简单且可靠,支持常用字体颜色(8+8种),背景色(8+8种),样式(8种)的选择定义。

安装(Install)

npm i easy-chalk
# 或者 (Or)
pnpm add easy-chalk

使用(Usage)

import easyChalk, { color, bgColor, style } from 'easy-chalk'

/**
 * 比如打印一个 白色字体,红色背景色,斜体的 log
*/
console.log(easyChalk(
  '欢迎使用 easy-chalk',
  [color.white, bgColor.red, style.italics])
)
1.0.6

4 months ago

1.0.5

4 months ago

1.0.2

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago