CodeSampleX

サンプル

yaml 2.9.0: identify YAML AST node types using type guard functions

検証済みサンプル — npm yaml 2.9.0: identify YAML AST node types using type guard functions. node 22 · linux alpine/x64 · docker で contract を実行し、成功しました: isNode…

sha256:43be9c1b6fa308424bbb38218e40a648359526865949dc4c856af8e50a42e924

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

実行証拠

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

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

検証実行環境

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

ケース

HOW
ゴール
identify YAML AST node types using type guard functions
パッケージ
シンボル
  • isMap
  • isNode
  • isScalar
  • isSeq
作成日
2026-08-19T02:52:09Z

コントラクト

  1. isNode returns true for YAML AST Node instances including Scalar, YAMLMap, and YAMLSeq
  2. isScalar returns true for scalar AST nodes representing primitive values
  3. isMap returns true for mapping AST nodes representing key-value collections
  4. isSeq returns true for sequence AST nodes representing ordered lists
  5. Type guards return false for non-AST objects, primitives, and null

ファイル

  • PROMPT.md
  • csx.json
  • index.mjs
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.mjs

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

オリジンシーダー

匿名