3.3.0 • Published 1 year ago

macos-release v3.3.0

Weekly downloads
3,240,317
License
MIT
Repository
github
Last release
1 year 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_packagetest-zeo-collectvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvantiq-reactjrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libjamuskalimkhaled-salem-custom-componentshong1-utilsl2forlerna@wecraftapps/react-native-use-keyboard@tlgeo/react-native-gdal@thinxviewx/core-rn@yplabs-ltd/react-native-detector@zalastax/nolb-mac@zotasys/native@znemz/build-infoagent-get-agentawesome-module-kdarifbudixzanimiassumendaarchlibrary@oiti/rn-liveness2d@orgbluetooth/react-native-arunpayupayment@orgbluetooth/react-native-payupayment@innodata/vue-v3-ya-metrika@idas1/ui-component-lib@ponchodien/react-native-printer-imin@please.dev/libget-os-infogenz-native-elementsframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newgaurav-react-native-loopgamification-integration-new@sridharetikala/react-native-rn-lib-custom-components@status-im/react-native-transparent-video@stonegray/ableton-detect@stonegray/plugin-detect@syedt/hellosdk@taingo97/react-native-awesome-module@taingo97/react-native-bluetooth-xprinter@taingo97/react-native-expo-key-rsa-kt@taingo97/react-native-expo-rsa@taingo97/react-native-generate-key-rsa@taingo97/react-native-key-rsa@taingo97/react-native-print-xprinter@taingo97/react-native-printer-imin@taingo97/react-native-rsa@taingo97/react-native-rsa-expo@taingo97/react-native-sunmi-printer@taingo97/react-native-telpo-printerdomaincomponentdogandev-simple-toastenvtoolsexpo-renavigateesvufetch-sitefawaterak-online-paymentfawatrak-online-paymentfluent.adflow.reactnativesdk
3.3.0

1 year ago

3.2.0

2 years ago

2.5.1

3 years ago

3.1.0

3 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.5.0

4 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.0

6 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.1.0

8 years ago

1.0.0

9 years ago