CodeSampleX

Sample

parse CLI arguments with string, boolean options, aliases and defaults using minimist

sha256:6b1429ca854e1f6b53d3c78c0f4943b6814298d81c0ab3c6ad46e7d092d71e96

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment linux 24 · ubuntu · glibc 2.39 x64 npm

Verification-run environments

Environment Contract Stages Run
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-28

Case

HOW
Goal
parse CLI arguments with string, boolean options, aliases and defaults using minimist
Packages
Symbols
  • minimist
Created
2026-08-28T05:34:00Z

Contract

  1. minimist parses long and short boolean flags and supports negation with --no- prefix
  2. minimist parses string arguments passed with spaces or equal signs
  3. minimist forces specified option keys to string type and preserves leading zeros
  4. minimist forces specified option keys to boolean type without consuming following values
  5. minimist maps option aliases bidirectionally to full names and alias keys
  6. minimist applies default values for unspecified options without overriding provided values
  7. minimist collects remaining positional arguments in the _ array and arguments after -- in the -- array
  8. minimist supports stopEarly to treat all arguments after the first positional argument as positional

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous