Beispiel
Configure runtime color formatting and disable ANSI codes in Chalk v5 via chalk.level instead of deprecated chalk.enabled or missing chalk.supportsColor
sha256:525f14e9ff41964b2cf8700329f042389c75335c2b13dc4d12796c1cbb8e0f28
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Configure runtime color formatting and disable ANSI codes in Chalk v5 via chalk.level instead of deprecated chalk.enabled or missing chalk.supportsColor HOW
- Pakete
- chalk 5.4.1
- Umgebung
- node
- Erstellt
- 2026-08-16T07:28:33Z
Contract
- assert that chalk.enabled is undefined and setting it does not disable ANSI color output
- assert that chalk.supportsColor is undefined on the default export
- set chalk.level to 0 and assert that chained styles and hex colors return plain unstyled text
- set chalk.level to 1 and assert that ANSI escape sequences are restored
- assert that Chalk constructor rejects invalid level values with an error
Dateien
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9