CodeSampleX

Beispiel

yaml 2.9.0: parse multi-document YAML streams with parseAllDocuments

Verifiziertes Beispiel für npm yaml 2.9.0: parse multi-document YAML streams with parseAllDocuments. Der Vertrag lief auf node 22 · linux alpine/x64 · docker…

sha256:5f37d79049377ed19502a840eaa7bd6cf5c036a1f28af882738a4823480e37b7

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
1
Signaturschlüssel, die es gebaut haben
1
Deklarierte Umgebung windows 11 x64 npm

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
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

Fall

HOW
Ziel
parse multi-document YAML streams with parseAllDocuments
Pakete
Symbole
  • parseAllDocuments
Erstellt
2026-08-18T19:44:26Z

Contract

  1. YAML.parseAllDocuments parses multi-document YAML streams into an array of Document instances
  2. YAML.parseAllDocuments correctly parses individual documents with distinct schemas, mappings, and sequences
  3. Document.toJS converts each parsed document AST into its corresponding JavaScript object
  4. Document.errors records syntax errors for invalid documents in the stream
  5. YAML.parseAllDocuments supports custom parsing options such as prettyErrors and keepSourceTokens

Dateien

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

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym