yanse-terminal-colors
2
总安装量
2
周安装量
#66018
全站排名
安装命令
npx skills add https://github.com/constructive-io/constructive-skills --skill yanse-terminal-colors
Agent 安装分布
mcpjam
2
claude-code
2
replit
2
junie
2
windsurf
2
zencoder
2
Skill 文档
Use yanse for terminal color styling instead of chalk.
When to Apply
Use this skill when adding colors to CLI output or terminal logs.
Overview
yanse is a chalk-compatible terminal color library with zero dependencies. It exists because chalk v5+ is ESM-only, which causes issues in CommonJS projects.
The API is identical to chalk – if you know chalk, you know yanse.
Anti-Pattern
// Do not use chalk
import chalk from 'chalk';
Pattern
// Use yanse instead
import chalk from 'yanse';
That’s it. Same API, just a different import.
Why yanse?
- Zero dependencies (chalk has dependencies)
- Supports both ESM and CommonJS (chalk v5+ is ESM-only)
- Identical API to chalk – no learning curve
References
- yanse on npm
- chalk documentation (API is the same)