3.3.0 • Published 4 months ago

macos-release v3.3.0

Weekly downloads
3,240,317
License
MIT
Repository
github
Last release
4 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-librarytest-library-123test-haptik-libx-js-serverwifi_configuration_packagern-tm-notifyrn-currency-formatterrn-counter-demorn-session-multiplier-demorn_unique_device_idrnttlockscout-chatbot-widgetreactnativelyrn-check-btnrn-circular-chartrn-adyen-dropinrouter-loggerreact-native-video-typoreact-native-wtfreact-native-version-appreact-native-withframework-checktest-zeo-collectvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvantiq-reactjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativern-agora-ios-mgit-repo-initjesh-calculationjamuskalimjrennsoh88-react-native-scroll-indicatorkhaled-salem-custom-componentsjordy-frijters-test-libhong1-utilsl2forlernareact-native-rom-componentsori-bot-react-nativeproject-wajs-dvnpm_one_12_34_1_npm_one_1_2_3npm_one_2_2npm_qwertynode-7z-forallnode-7z-threetwonode-b7zpnm-yph-react-native-custom-componentsmv-data-coremv-data-core-alpha-buildpayutestingraact-native-arunramya151react-native-bluetooth-device-detectreact-native-build-vesion-getterreact-native-datacapture-corereact-native-dimensions-layoutreact-native-bottom-tab-designsreact-native-components-designreact-native-conekta-card-tokenizerreact-native-create-video-thumbnailreact-native-cplusreact-native-flyyreact-native-ctp-odpreact-native-escapereact-native-contact-listreact-native-custome-component-demo
3.3.0

4 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