3.2.0 • Published 11 months ago

macos-release v3.2.0

Weekly downloads
3,240,317
License
MIT
Repository
github
Last release
11 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
  • win-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_samplenpm_qwertynpm_one_12_34_1_npm_one_1_2_3npm_one_2_2node-7z-forallnode-7z-threetwopayutestingnode-b7znative-google-loginnative-modal-damage-vehiclenative-kakao-loginpnm-yph-react-native-custom-componentsproject-wajs-dvbirken-react-native-community-image-editorbiometric-st@corelmax/react-native-my2c2p-sdk@cleveradssolutions/cas.cordova.adcolony@cleveradssolutions/cas.cordova.admob@cleveradssolutions/cas.cordova.applovin@cleveradssolutions/cas.cordova.facebook@cleveradssolutions/cas.cordova.families@cleveradssolutions/cas.cordova.fyber@cleveradssolutions/cas.cordova.inmobi@cleveradssolutions/cas.cordova.ironsource@cleveradssolutions/cas.cordova.kidoz@cleveradssolutions/cas.cordova.mintegral@cleveradssolutions/cas.cordova.mytarget@cleveradssolutions/cas.cordova.optimal@cleveradssolutions/cas.cordova.pangle@cleveradssolutions/cas.cordova.superawesome@cleveradssolutions/cas.cordova.tapjoy@cleveradssolutions/cas.cordova.unity@cleveradssolutions/cas.cordova.vungle@cleveradssolutions/cas.cordova.yandex@con-test/react-native-concent-common@cs6/react-native-test-native-view-library@damruravihara/react-native-testing-package@cynova/test1checkbox-componentzeo-collect@brantalikp/rn-resizebeasy@blusalt-sdk/react-native-blusalt-document-verification@geeky-apo/react-native-advanced-clipboardwifi_configuration_packagex-js-serveryangtao-jsvue-v3-yandex-metrika@hemith/react-native-tnkcordova-plugin-demotoastfluent.adflow.reactnativesdk-alphafluent.adflow.reactnativesdkfmsljawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarreact-native-create-video-thumbnailnative-date-picker-modulenative-apple-loginnew-awesome-4321react-native-android-video-player-viewreact-native-animate-textreact-native-additionreact-native-pulsator-nativereact-native-plugpag-wrapperreact-native-rom-componentsreact-native-rtn-ips-poslin-testreact-native-savczuk-feature-library
3.2.0

11 months ago

2.5.1

1 year 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

5 years ago

2.1.0

5 years ago

2.0.0

6 years ago

1.1.0

7 years ago

1.0.0

8 years ago