🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

macos-version-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

macos-version-cli

Get the macOS version of the current system

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

macos-version-cli

Get the macOS version of the current system. Example: 10.9.3

Install

npm install --global macos-version-cli

Usage

$ macos-version --help

  Usage
    $ macos-version

  Options
    --is <semver-range>      Check if the macOS version matches the specified semver range
    --gte <version>          Check if the macOS version is greater than or equal to the specified version
    --assert <semver-range>  Assert that the macOS version matches the specified semver range
    --assert-gte <version>   Assert that the macOS version is greater than or equal to the specified version

  Examples
    $ macos-version
    14.0
    
    $ macos-version --is '>10.10'
    âś” macOS version satisfies >10.10
    
    $ macos-version --gte 10.10
    âś” macOS version is greater than or equal to 10.10
    
    $ macos-version --assert '>10.10'
    âś” macOS version satisfies >10.10
    
    $ macos-version --assert-gte 10.10
    âś” macOS version is greater than or equal to 10.10

  Exit codes
    0 - Success or condition is true
    1 - Condition is false or assertion failed
  • macos-version - API for this package

Keywords

cli-app

FAQs

Package last updated on 09 Sep 2025

Did you know?

Socket

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.

Install

Related posts