
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.
yu-judge-browser
Advanced tools
this is a simple script use useragent to judge browser
Using npm:
$ npm install --save yu-judge-browser
$ import browser from 'yu-judge-browser'
console.log(browser)
{
"versions":{
"trident":false,
"presto":false,
"webKit":true,
"gecko":false,
"mobile":false,
"ios":false,
"android":false,
"iPhone":true,
"iPad":false,
"qq":false,
"wechat":false,
"webApp":false
},
"language":"zh-cn"
}"
* @returns {object[]} versions - true or false of different terminals
* @returns {boolean} [versions[].trident] - is ie ?
* @returns {boolean} [versions[].presto] - is opera ?
* @returns {boolean} [versions[].AppleWebKit] - is apple,chrome ?
* @returns {boolean} [versions[].gecko] - is firefox ?
* @returns {boolean} [versions[].mobile] - is mobile ?
* @returns {boolean} [versions[].ios] - is ios ?
* @returns {boolean} [versions[].android] - is android ?
* @returns {boolean} [versions[].iPhone] - is iPhone ?
* @returns {boolean} [versions[].iPad] - is iPad ?
* @returns {boolean} [versions[].qq] - is qq browser ?
* @returns {boolean} [versions[].wechat] - is wechat browser ?
* @returns {boolean} [versions[].webApp] - is webApp ?
* @returns {string} language - language of this web
FAQs
a simple plugin develop cli with babel
We found that yu-judge-browser 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.