项目介绍

matthewhudson/current-device 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 3.9k 个 Star、576 次 Fork。

仓库全名
matthewhudson/current-device

README 摘要

CURRENT-DEVICE current-device adds CSS classes to for the visitor's operating system, device type and orientation, and gives you the same answers in JavaScript: It is a small (under 3 KB gzipped), dependency-free classifier built for styling, layout conventions and analytics. It reads the user agent string once and sorts the device into a handful of buckets. It does not identify device models, browsers or OS…

完整内容见 GitHub 原始 README 或本页 。

常见问题

current-device 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 3.9k 个 Star。

current-device 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 current-device 的源码?

可以直接克隆仓库:git clone https://github.com/matthewhudson/current-device.git,默认分支为 main;安装与运行步骤见仓库 README。

current-device 最近还在维护吗?

仓库最近一次更新为 4 周前,当前有 1 个未关闭 Issue;Star 数为 3.9k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

📱 The easiest way to write conditional CSS and/or JavaScript based on device operating system (iOS, Android, Blackberry, Windows, Firefox OS, MeeGo), orientation (Portrait vs. Landscape), and type (Tablet vs. Mobile).

以下为仓库作者撰写的原始描述。

简要分析

热度分
5184
价值分
2534
活跃状态
活跃

语言占比

JavaScript
TypeScript

Release