GitShow/sindresorhus/os-name
sindresorhus

os-name

Get the name of the current operating system. Example: macOS Sierra

by sindresorhus
Star on GitHubForknpm

JavaScript

149 stars15 forks10 contributorsQuiet · 6mo agoSince 2014v7.0.0MIT

Meet the team

See all 10 on GitHub →
sindresorhus
sindresorhus46 contributions
arthurvr
arthurvr1 contribution
clarkio
clarkio1 contribution
BendingBender
BendingBender1 contribution
jssuttles
jssuttles1 contribution
jacargentina
jacargentina1 contribution
jpike88
jpike881 contribution
manuknz
manuknz1 contribution

Languages

View on GitHub →
JavaScript88.8%
TypeScript11.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
sindresorhus
Use `os.version()` to get more accurate nameClosedIssue

It's only available on Node.js 14, so we must guard its usage. https://nodejs.org/api/os.html#os_os_version https://github.com/ehmicky/cross-platform-node-guide/blob/master/docs/7_system/os_identification.md On Linux, we'll need to do some parsing to get out the actual distro name.

sindresorhus · 6mo ago
jssuttles
Update dependencies and add test case for Windows 11MergedPR
jssuttles · 1y ago
nichita-rusin
bump `windows-release` versionMergedPR

Bump version to v6.0.1 to fix fatal crash on calling on Windows

nichita-rusin · 2y ago
Structured data for AI agents

Repository: sindresorhus/os-name. Description: Get the name of the current operating system. Example: macOS Sierra Stars: 149, Forks: 15. Primary language: JavaScript. Languages: JavaScript (88.8%), TypeScript (11.2%). License: MIT. Latest release: v7.0.0 (6mo ago). Open PRs: 0, open issues: 0. Last activity: 6mo ago. Community health: 85%. Top contributors: sindresorhus, arthurvr, clarkio, BendingBender, jssuttles, jacargentina, jpike88, manuknz, rayshan, Richienb.

·@ofershap

Replace github.com with gitshow.dev