1.7.0 • Published 1 year ago
mobile_device_checker v1.7.0
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_checkerUsage
import isMobileDevice from "moblie_device_checker";
//Check if the device is mobile
const result = isMobileDevice();
console.log(result);//true if mobile device, false otherwise