Exemple
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
Cas
- Objectif
- Configure runtime color formatting and disable ANSI codes in Chalk v5 via chalk.level instead of deprecated chalk.enabled or missing chalk.supportsColor HOW
- Paquets
- chalk 5.4.1
- Environnement
- node
- Créé
- 2026-08-16T07:28:33Z
Contrat
- 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
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9