Back to Explore

lovell/detect-libc

GitHub
1 watchersOpen source

Last release: 8 months ago

detect-libc is a Node.js module that detects which C standard library (libc) implementation a Linux system provides. It supports GNU glibc and MUSL, and offers async and sync functions to determine the libc family and version (returning null when it cannot be detected or when run on non-Linux platforms).

Project status

  • Actively maintained, with recent GitHub updates in October 2025 (latest push on 2025-10-05) and prior updates in mid September 2025.
  • Apparent update cadence is steady but modest, with patch-level updates roughly every 1 to 2 weeks across the latest tags (v2.1.0 on 2025-09-14, v2.1.1 on 2025-09-24, v2.1.2 on 2025-10-05).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.1.2

    8 months ago

    v2.1.2 is a small patch release with only 3 files changed. The code change updates how a file descriptor is closed in lib/filesystem.js, and the rest of the diff mainly adds changelog tooling and documentation.

  • v2.1.1

    8 months ago

    Release v2.1.1 contains a very small patch update. The only functional code change appears to be how a file descriptor is closed after reading data, plus a minor package.json repository URL formatting change.

  • v2.1.0

    8 months ago

    This release (v2.1.0) was published, but no release notes or change log details were provided by the publisher. As a result, the available information is insufficient to determine whether this upgrade includes new features, breaking changes, bug fixes, security updates, or dependency changes.

  • v2.1.0-rc.0

    8 months ago

    v2.1.0-rc.0 refactors Linux libc detection to add an ELF-based path check (parsing PT_INTERP from /proc/self/exe) and changes internal filesystem helpers to operate on Buffers instead of strings. The new interpreter-based approach is introduced ahead of the previous ldd/report/filesystem fallbacks.

    BreakingFeatures
  • v2.0.4

    4/22/2025

    v2.0.4 contains no published release notes. The code diff shows only CI workflow matrix updates and a package.json metadata change related to TypeScript type resolution.

  • v2.0.3

    3/19/2024

    Release v2.0.3 has no publisher-provided release notes. The code changes mainly adjust libc (glibc) parsing heuristics and how the module reads process.report data on Linux, plus CI and test updates.

  • v2.0.2

    7/18/2023

    Release v2.0.2 contains a relatively large internal change to how libc family and version are detected on Linux. Instead of relying only on the existing report/command-based approach, it now reads and parses the ldd binary from the filesystem, with caching, and falls back to the previous mechanisms on failure.

    Features
  • v2.0.1

    2/14/2022

    Release v2.0.1 bumps the package version and makes a small change to the TypeScript declaration file. The only functional change visible in the diff is in typings, while the rest of the changes are to CI workflow configuration and test matrix coverage.

  • v2.0.0

    1/19/2022

    Release v2.0.0 (no release notes provided) introduces a major API redesign for libc detection. The implementation now detects libc family/version via process.report (when available) and by running getconf and ldd, and it changes several exports from eagerly computed values to async and sync functions.

    Features
  • v1.0.3

    11/22/2017

    Release v1.0.3 was published on 2017-11-22, but the publisher did not provide release notes. As a result, the specific code changes, potential API impacts, and any fixes are not described in the provided material.