1 个仓库
Systems for translating raw browser metadata and user-agent strings into structured device and OS labels.
Distinct from Client-Side Route Mapping: Unlike route mapping or state mappings, this focuses specifically on translating browser identity metadata into categories.
Explore 1 awesome GitHub repository matching web development · Browser Environment Mapping. Refine with filters or upvote what's useful.
current-device 是一个 JavaScript 设备检测库,用于在 Web 浏览器环境中识别操作系统、设备类别和屏幕方向。它作为一个浏览器环境检测器和客户端映射器,将浏览器元数据和用户代理字符串转换为预定义的设备标签和硬件类别。 该库提供了根据检测到的移动或桌面平台执行特定 JavaScript 逻辑的工具。它还作为条件样式工具和文档主体类注入器,应用描述性 HTML 类以实现设备特定的视觉样式。 该系统包括一个屏幕方向监控器,用于实时检测并响应纵向和横向模式之间的变化。它涵盖了用户代理解析、跨平台 Web 适配和响应式方向处理的通用功能。
Maps raw browser metadata to a set of device categories and operating system labels during runtime.