@darthcav/ts-utils
    Preparing search index...

    Function linuxRelease

    • Returns parsed key-value pairs from /etc/os-release on Linux, or null on other platforms or when the file is absent.

      Returns LinuxRelease | null

      import { linuxRelease } from "@darthcav/ts-utils"

      const info = linuxRelease()
      if (info) console.log(info.PRETTY_NAME) // e.g. "Ubuntu 24.04 LTS"