1.7.0 • Published 6 months ago

mobile_device_checker v1.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

isMobileDevice Function

This package provides the isMobileDevice utility function that determines whether the current device is a mobile device based on the userAgent string. It checks various user agents to identify devices like Android, iOS, BlackBerry, and other mobile operating systems.

Installation

To install this package, run the following command:

npm install mobile_device_checker

Usage

import isMobileDevice from "moblie_device_checker";

//Check if the device is mobile
const result = isMobileDevice();
console.log(result);//true if mobile device, false otherwise