CodeSampleX

サンプル

chalk 6.0.0: Apply Chalk v6 extended underline styles and SGR 58 underline colors with level-dependent downsampling and separate color export catalogs.

検証済みサンプル — npm chalk 6.0.0: Apply Chalk v6 extended underline styles and SGR 58 underline colors with level-dependent downsampling and separate color export…

sha256:b96150657e900e7afc7af76e5c63c74d2de2ef16bdfea180adc7d3b713d5cc28

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
2
ビルドした署名鍵
2
宣言された環境 node linux x64 node node npm

検証実行環境

環境 コントラクト ステージ 実行日
node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-17
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-18

ケース

HOW
ゴール
Apply Chalk v6 extended underline styles and SGR 58 underline colors with level-dependent downsampling and separate color export catalogs.
パッケージ
シンボル
  • chalk.underlineRgb
  • chalk.underlineHex
  • chalk.underlineCurly
  • chalk.underlineRed
  • underlineColorNames
環境
node
作成日
2026-08-17T18:28:06Z

コントラクト

  1. Chalk v6 underline colors emit SGR 58 escape sequences with SGR 59 resets across all color levels, downsampling to palette-indexed SGR 58;5 codes at level 1 rather than 2-digit ANSI codes.
  2. Level 3 truecolor underlineHex and underlineRgb emit 24-bit SGR 58;2 sequences closed by \u001b[59m.
  3. Level 2 256-color underlineHex downsamples to 8-bit palette SGR 58;5 sequences closed by \u001b[59m.
  4. Extended underline styles underlineCurly, underlineDouble, underlineDotted, and underlineDashed emit SGR 4:x subparameter sequences closed by \u001b[24m.
  5. Chaining extended underline styles with underline colors combines open sequences and nests closing sequences in LIFO order.
  6. underlineColorNames is exported separately and omitted from the colorNames export.
  7. Level 0 completely strips underline style and color escape sequences, returning plain text.

ファイル

  • NOTES.md
  • csx.json
  • package-lock.json
  • package.json
  • src/index.mjs
  • test/contract.mjs

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

csx-seed