6.0.0 • Published 5 months ago

windows-release v6.0.0

Weekly downloads
3,189,584
License
MIT
Repository
github
Last release
5 months ago

windows-release

Get the name of a Windows version from the release number: 5.1.2600XP

Install

npm install windows-release

Usage

import os from 'node:os';
import windowsRelease from 'windows-release';

// On a Windows XP system

windowsRelease();
//=> 'XP'

os.release();
//=> '5.1.2600'

windowsRelease(os.release());
//=> 'XP'

windowsRelease('4.9.3000');
//=> 'ME'

API

windowsRelease(release?)

release

Type: string

By default, the current OS is used, but you can supply a custom release number, which is the output of os.release().

Note: Most Windows Server versions cannot be detected based on the release number alone. There is runtime detection in place to work around this, but it will only be used if no argument is supplied, or the supplied argument matches os.release().

Related

  • os-name - Get the name of the current operating system
  • macos-release - Get the name and version of a macOS release from the Darwin version
os-namearchetype-libraryeasy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imageairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdkreact-native-printer-brothersreact-native-shekhar-bridge-test@oiti/documentoscopy-react-nativequoc-test@infinitebrahmanuniverse/nolb-windluminos-ui-core@everything-registry/sub-chunk-3149jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplereact-native-animate-textreact-native-android-video-player-viewreact-native-badge-controlreact-native-basic-appreact-native-basic-screenreact-native-bubble-chartreact-native-create-video-thumbnailreact-native-cplusreact-native-build-vesion-getterreact-native-additionreact-native-arps-authorize-netreact-native-arun-ramya-testreact-native-arunjeyam1987react-native-arunmeena1987react-native-arunramya151react-native-bluetooth-device-detectreact-native-bleccs-componentsreact-native-biometric-authenticatereact-native-check-componentreact-native-chenaarreact-native-conekta-card-tokenizerreact-native-contact-listreact-native-components-designscout-chatbot-widgetsindresorhus.jsreact-native-recent-framework-updatereact-native-reanimated-sortable-listreact-native-rom-componentsreact-native-get-countriesreact-native-innity-2react-native-innity-remasterreact-native-input-libraryreact-native-omental-frameworkreact-native-onrampreact-native-plugpag-wrapperreact-native-screen-idle-timerreact-native-scroll-tab-to-indexreact-native-payu-payment-testingreact-native-responsive-sizereact-native-return-usb-datareact-native-rn-icons-libraryreact-native-rn-appreact-native-rtn-ips-poslin-testreact-native-sayhello-modulereact-native-savczuk-feature-libraryreact-native-sandycomponentreact-native-flyyreact-native-ghn-ekycreact-native-dimensions-layoutreact-native-dhp-printerreact-native-dsphoto-modulereact-native-ctp-odpreact-native-fedlight-dsmreact-native-kakao-mapsreact-native-jsi-device-inforeact-native-uvc-camera-androidreact-native-xprinter-thermal-blereact-native-wtfreact-picky-with-clearreact-native-auth-service-clientreact-native-app-bubblereact-native-app-integrity-checksumdemo-test-scrnreact-native-awesome-android-123react-native-awesome-android-123-zeotapreact-native-aventonfacetec-aventonreact-native-azure-communication-servicesreact-native-awesome-module-latestreact-native-awesome-module-tworeact-native-bridge-packagereact-native-manh-testreact-native-manual-ios-sdkreact-native-nativewind
6.0.0

5 months ago

5.1.1

11 months ago

5.1.0

1 year ago

5.0.1

2 years ago

5.0.0

3 years ago

4.0.0

4 years ago

3.3.3

4 years ago

3.3.2

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.0

5 years ago

3.1.0

6 years ago