Skip to content

Instantly share code, notes, and snippets.

View chalecki's full-sized avatar
🐼

Piotr Chalecki chalecki

🐼
View GitHub Profile
@chalecki
chalecki / mobile-device-detection.ts
Created November 1, 2025 16:15
A collection of functions for detecting mobile devices based on user agent strings
/**
* Mobile Device Detection Utilities
*
* A collection of functions for detecting mobile devices based on user agent strings.
* Supports both modern and legacy device detection with fine-grained control.
*
* @module mobile-detection
* @example
* import { isMobileDevice, isMobileDeviceLegacy, isTablet } from './mobile-detection';
*