GitShow/sindresorhus/macos-version
sindresorhus

macos-version

Get or check the current macOS version

by sindresorhus
Star on GitHubForknpm

JavaScript

61 stars8 forks7 contributorsQuiet · 5y agoSince 2014v6.0.0MIT

Meet the team

See all 7 on GitHub →
sindresorhus
sindresorhus34 contributions
arthurvr
arthurvr5 contributions
BendingBender
BendingBender2 contributions
albinekb
albinekb1 contribution
briangonzalez
briangonzalez1 contribution
Leelow
Leelow1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript88%
TypeScript12%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
yaozhenx
Release 6.0.0 breaks Electron appsClosedIssue

Electron renderer process importing macos-version is broken with commit b42707c (https://github.com/sindresorhus/macos-version/commit/b42707c62024f2c231b2ffae9e81fd27679a7c7f). The error message is like: internal/modules/cjs/loader.js:890 Uncaught Error: Cannot find module 'node:process' Require stack: /index.html at Module._resolveFilename (internal/modules/cjs/loader.js:887) at Function.o._resolveFilename (electron/js2c/renderer_init.js:33) at Module._load (internal/modules/cjs/loader.js:732) at Function.f._load (electron/js2c/asar_bundle.js:5) at Function.o._load (electron/js2c/renderer_init.js:33) at Module.require (internal/modules/cjs/loader.js:959) at require (internal/modules/cjs/helpers.js:88) at Object.node:process (index.js:2791) at __webpack_require__ (index.js:9052) at eval (index.js:11) Removing import of 'macos-version' or revert to older release and the error is gone.

yaozhenx · 4y ago
dyaskur
(node:21734) Warning: N-API is an experimental feature and could change at any time.ClosedIssue

When I use return this warning on console.log but when I use , the warning not shown. Why? Could my code give different result than ? I used on node 16.

dyaskur · 5y ago
aguynamedben
Incorrect version returned for macOS Big SurClosedIssue

First, thank you for all the amazing open source libraries you've provided and supported over the years. You're a hero. I think this repo needs to be updated for proper Big Sur support. I'm getting as macOS version while running Big Sur . I can look into making a PR later tonight but just wanted to point it out first and make sure I wasn't missing something simple. code output versions macos-release: 2.4.1 macos-version: 5.2.0 my computer !image

aguynamedben · 5y ago
Structured data for AI agents

Repository: sindresorhus/macos-version. Description: Get or check the current macOS version Stars: 61, Forks: 8. Primary language: JavaScript. Languages: JavaScript (88%), TypeScript (12%). License: MIT. Latest release: v6.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 71%. Top contributors: sindresorhus, arthurvr, BendingBender, albinekb, briangonzalez, Leelow, Richienb.

·@ofershap

Replace github.com with gitshow.dev