
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
linux-os-release
Advanced tools
A Node.js library for reading Linux operating system identification data from /etc/os-release
and /usr/lib/os-release
files according to the freedesktop.org specification.
npm install linux-os-release
import { readLinuxOSReleaseInfo } from 'linux-os-release';
// Read OS release info from standard locations
const osInfo = await readLinuxOSReleaseInfo();
console.log(osInfo);
// Output example:
// {
// NAME: 'Ubuntu',
// VERSION: '20.04.1 LTS (Focal Fossa)',
// ID: 'ubuntu',
// ID_LIKE: 'debian',
// PRETTY_NAME: 'Ubuntu 20.04.1 LTS',
// VERSION_ID: '20.04',
// HOME_URL: 'https://www.ubuntu.com/',
// SUPPORT_URL: 'https://help.ubuntu.com/',
// BUG_REPORT_URL: 'https://bugs.launchpad.net/ubuntu/',
// PRIVACY_POLICY_URL: 'https://www.ubuntu.com/legal/terms-and-policies/privacy-policy',
// VERSION_CODENAME: 'focal',
// UBUNTU_CODENAME: 'focal'
// }
MIT
FAQs
Reads Linux operating system identification data
The npm package linux-os-release receives a total of 294 weekly downloads. As such, linux-os-release popularity was classified as not popular.
We found that linux-os-release demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.