示例
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
案例
- 目标
- Detect C standard library family and version without non-Linux false positives, semver assumptions, or unhandled descriptor close callback errors HOW
- 包
- detect-libc 2.1.2
- 环境
- node
- 创建时间
- 2026-08-16T06:22:13Z
契约
- 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
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9