Skip to content

Jasurbek2208/Mobile_Device_Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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