示例
Downsample ansi256 and bgAnsi256 colors to standard 16-color ANSI escapes when running at level 1
sha256:74d548e420a024eb120c52cb1ff26ca2704801d6119d90fc018a20e7c803212e
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Downsample ansi256 and bgAnsi256 colors to standard 16-color ANSI escapes when running at level 1 HOW
- 包
- chalk 6.0.0
- 环境
- node
- 创建时间
- 2026-08-16T07:28:32Z
契约
- construct Chalk instance with level 1 and assert ansi256 downsamples to 16-color ANSI escapes
- assert bgAnsi256 downsamples to 16-color background ANSI escapes at level 1
- assert ansi256 and bgAnsi256 preserve 256-color escape sequences at level 2
- assert ansi256 and bgAnsi256 return plain unstyled text when level is 0
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9