Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

device-manager

mkay58190MIT1.1.1

Detect information about a user's current device

device manager, device detection

readme

Build Status

Device Manager

Usage

A library that detects information about a current user's device in browsers.

Check user's current browser

DeviceManager.isBrowser('chrome');

Find out if user is on a certain operating system

DeviceManager.isOS('android');

Device checking

// when user is on a mobile device
DeviceManager.isMobile();
=> true