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

browser-type-device

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

browser-type-device

获取浏览器类别;获取浏览器当前模式(极速、兼容)

unpublished
latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

getBrowserVersion

获取浏览器类别,浏览器版本

获取当前处于手机还是PC端

isPC: true -PC端 false -手机端

用法

// use npm
npm i browser-type-device
// use yarn
yarn add browser-type-device
// use pnpm
pnpm i browser-type-device

// 使用
import { getBrowserType,
		getIEversion,
		getNavigator,
		isFast,
		isPC,
		isPhone,
		getDeviceType } from 'get-browser-version'

.....

Keywords

browser

FAQs

Package last updated on 28 Apr 2021

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