Skip to content

Plugin for Vue3 that detects browser name, version, and user-agent

License

Notifications You must be signed in to change notification settings

smg99/vue-detect-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vue-detect-browser

Plugin for Vue3 that detects browser name, version, and user-agent

Installation

npm i vue-detect-browser

In your main.js:

import detectBrowser from "vue-detect-browser";
app.use(detectBrowser);

Usage

Browser

In any component file it is available as detectBrowser data property

this.detectBrowser.isChrome
this.detectBrowser.isFirefox
this.detectBrowser.isOpera
this.detectBrowser.isSafari
this.detectBrowser.isEdge
this.detectBrowser.isChromeIOS
this.detectBrowser.isIOS
this.detectBrowser.isIE

About

Plugin for Vue3 that detects browser name, version, and user-agent

Resources

License

Stars

Watchers

Forks

Packages

No packages published