New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

whitchapp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

whitchapp

查询浏览器类型,是否APP端,并且分析出APP类型

unpublished
latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

whitchapp

查询浏览器环境,移动端还是PC端。使用的操作系统及移动端常见APP类型。

一、安装

# install dependencies
npm install whitchapp --save

二、返回

{
    mobile: true  // true:移动端。
    platform: {
        os: 'android', // android iphone ipad ipod wp kindle blackberry 或 默认值:''
        app: 'weixin' // weixin QQ weibo DingDing 或 默认值:browser
        browser: 'chrome' // chrome firefox ie safari opera
    }
}

注:platform.app 字段只有移动端有。platform.browser字段只有PC下有

FAQs

Package last updated on 10 Apr 2020

Did you know?

Socket

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.

Install

Related posts