3.3.0 • Published 3 months ago

macos-release v3.3.0

Weekly downloads
3,240,317
License
MIT
Repository
github
Last release
3 months ago

macos-release

Get the name and version of a macOS release from the Darwin version\ Example: 13.2.0{name: 'Mavericks', version: '10.9'}

Install

npm install macos-release

Usage

import os from 'node:os';
import macosRelease from 'macos-release';

// On a macOS Sierra system

macosRelease();
//=> {name: 'Sierra', version: '10.12'}

os.release();
//=> 13.2.0
// This is the Darwin kernel version

macosRelease(os.release());
//=> {name: 'Sierra', version: '10.12'}

macosRelease('14.0.0');
//=> {name: 'Yosemite', version: '10.10'}

macosRelease('20.0.0');
//=> {name: 'Big Sur', version: '11'}

API

macosRelease(release?)

release

Type: string

By default, the current operating system is used, but you can supply a custom Darwin kernel version, which is the output of os.release().

Related

  • os-name - Get the name of the current operating system. Example: macOS Sierra
  • macos-version - Get the macOS version of the current system. Example: 10.9.3
  • windows-release - Get the name of a Windows version from the release number: 5.1.2600XP
os-namearchetype-libraryeasy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imageos-name-psairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxf@lysander6/directusdeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdkdirectus9-litereact-native-printer-brothersreact-native-shekhar-bridge-test@oiti/documentoscopy-react-nativequoc-test@infinitebrahmanuniverse/nolb-macoluminos-ui-core@everything-registry/sub-chunk-2119jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplegriffin-ui-libraryfmslfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphaframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newgamification-integration-newjamuskalimkhaled-salem-custom-componentsl2forlernahong1-utilsnode-b7znode-7z-forallnode-7z-threetwopayutestingnpm_one_12_34_1_npm_one_1_2_3npm_one_2_2npm_qwertyori-bot-react-nativejesh-calculationjordy-frijters-test-libjrennsoh88-react-native-scroll-indicatorget-os-infonative-apple-loginnative-google-loginnative-date-picker-modulenative-kakao-loginnative-modal-damage-vehiclenew-awesome-4321mv-data-coremv-data-core-alpha-build@idas1/ui-component-lib@innodata/vue-v3-ya-metrika@labiebhn_/react-native-multiplier@lehuyaa/my-assets@cs6/react-native-test-native-view-library@damruravihara/react-native-testing-package@geeky-apo/react-native-advanced-clipboard@hbglobal/react-native-actions-shortcuts@hawkingnetwork/react-native-tab-view@jellywelly/iterare@jfilipe-sparta/react-native-module_2@jonas.tang/mgcc-dms-api@kgit/readabilitydogandev-simple-toastdemo-test-scrncordova-plugin-demotoastcpcs6_loggeresvuexpo-renavigateenvtoolspnm-yph-react-native-custom-componentsproject-wajs-dvraact-native-arunramya151react-native-azure-communication-servicesreact-native-arun-ramya-testreact-native-awesome-android-123react-native-awesome-android-123-zeotapjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativern-agora-ios-mreactnativelyreat-native-multiplierkprrouter-logger
3.3.0

3 months ago

3.2.0

1 year ago

2.5.1

2 years ago

3.1.0

2 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.5.0

3 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.0

5 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.1.0

7 years ago

1.0.0

8 years ago