detect-os-version

v0.0.1arrow_drop_down
v0.0.1
STATUS
Passing
DOWNLOADS
4
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
1 KB
Gets the operating system and version the device is running on.
1 contributor
Install detect-os-version as a package?
Copied
npm i @bit/tomlandau.simple-js.platform-detection.detect-os-version
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right

Gets the operating system and version the device is running on. Works for Windows, Android, iOS, Mac OS X and BlackBerry.

Test Summary

detectOsVersion Should return Unknown version for Linux os

Pass

detectOsVersion Should return Unknown os and version for unlisted os such as Symbian

Pass

detectOsVersion Should return version for Android

Pass

detectOsVersion Should return version for BlackBerry 5

Pass

detectOsVersion Should return version for BlackBerry 7.1

Pass

detectOsVersion Should return version for Mac OS X

Pass

detectOsVersion Should return version for iOS

Pass

detectOsVersion Should return version for Windows 2000

Pass

detectOsVersion Should return version for Windows XP

Pass

detectOsVersion Should return version for Windows Server

Pass

detectOsVersion Should return version for Windows Vista

Pass

detectOsVersion Should return version for Windows 7

Pass

detectOsVersion Should return version for Windows 8

Pass

detectOsVersion Should return version for Windows 8.1

Pass

detectOsVersion Should return version for Windows 10

Pass
Help and resources