browser-which
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i browser-which

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

4.71 kB

Total Files

6

Last publish

Collaborators

  • kingller