
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
detector 是根据 UserAgent 信息识别客户端的模块,可以用于在服务端处理 UserAgent 识别客户端。
另外有一个更适合在客户端浏览器运行的版本的 detector
var detector = require("detector");
var ua = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36";
console.log(detector.detect(ua));
根据指定 userAgent 识别客户端信息。
这个 API 延续了基于浏览器运行的版本,但似乎基于 node 的版本无需这么累赘, 请参与讨论 。
1.0.0 (2013-05-01)
tag:new
发布第一个可用版本。
FAQs
The module for detect client-side information.
The npm package detector receives a total of 1,213 weekly downloads. As such, detector popularity was classified as popular.
We found that detector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.