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-react@cs6/react-native-test-native-view-library@con-test/react-native-concent-common@cynova/test1@damruravihara/react-native-testing-package@corelmax/react-native-my2c2p-sdk@praella/localisationistjrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libjamuskalimkhaled-salem-custom-componentsjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativern-agora-ios-mreact-native-omental-frameworkreact-native-sixdee_test_libtwine-libtwine-library@apardellass/react-native-audio-stream@brantalikp/rn-resizeyangtao-jsyarn-react-hook-formvue-v3-yandex-metrika@felipesimmi/react-native-datalogic-module@hawkingnetwork/react-native-tab-view@hbglobal/react-native-actions-shortcuts@idas1/ui-component-lib@geeky-apo/react-native-advanced-clipboard@innodata/vue-v3-ya-metrika@labiebhn_/react-native-multiplier@lehuyaa/my-assets@navabi/react-native-ssl-pinning@enkeledi/react-native-week-month-date-picker@extrieve_technologies/quickcapture_react_native@jonas.tang/mgcc-dms-api@kgit/readability@jellywelly/iterare@jfilipe-sparta/react-native-module_2@hemith/react-native-tnk@oiti/rn-liveness2d@react-native-ui-design/button@react-18-pdf/root@safely-project/safely-ts@saad27/react-native-bottom-tab-tour@saltcute/kasumi-status@saucelabs/cypress-visual-plugin@please.dev/lib@ponchodien/react-native-printer-imin@npm_fluentco/adflow-react-native-sdk@sephriot/react-native-persistable-urimv-data-coremv-data-core-alpha-buildnative-apple-loginnative-kakao-loginnative-google-login
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