Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

browser-which

kingller7MIT1.1.0TypeScript support: included

Get the current browser

browser, which

readme

browser-which

Get the current browser. Use feature detection instead as possible.

Install

npm install browser-which

Usage

import browser from 'browser-which';

browser.ie // 判断是否 IE 浏览器
browser.edge // 判断是否 Edge 浏览器
browser.firefox // 判断是否 firefox 浏览器
browser.opera // 判断是否 opera 浏览器
browser.chrome // 判断是否 chrome 浏览器
browser.safari // 判断是否 safari 浏览器

changelog

标签: 新增 修改 增强 修复 删除

1.1.0

2020.07.21

  1. 新增 判断是否Edge浏览器