Sample
Detect C standard library family and version without non-Linux false positives, semver assumptions, or unhandled descriptor close callback errors
sha256:9d9f48d1e0f14e1158b8b61741267b426aa158d3eadc22765d10ccf445004c31
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Detect C standard library family and version without non-Linux false positives, semver assumptions, or unhandled descriptor close callback errors HOW
- Packages
- detect-libc 2.1.2
- Environment
- node
- Created
- 2026-08-16T06:22:13Z
Contract
- assert GLIBC and MUSL string constants equal 'glibc' and 'musl'
- assert familySync, versionSync, and isNonGlibcLinuxSync return synchronously while family, version, and isNonGlibcLinux return Promises
- assert family and version sync and async methods resolve to matching values
- assert isNonGlibcLinux returns false on non-Linux platforms rather than true
- assert on Linux systems family returns glibc, musl, or null, and version returns decimal version without requiring semver patch
- assert file descriptor close in filesystem detection includes callback avoiding ERR_INVALID_CALLBACK
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9