1.1.0 • Published 4 years ago

browser-which v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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 浏览器