All Projects → dreambo8563 → vue-device-detector

dreambo8563 / vue-device-detector

Licence: MIT license
A tiny device detector plugin of Vue for mobile🐔👁

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-device-detector

Bowser
a browser detector
Stars: ✭ 5,006 (+11541.86%)
Mutual labels:  useragent, device-detection
Fake Useragent
A wide variety of random useragents
Stars: ✭ 253 (+488.37%)
Mutual labels:  useragent
Ngx Responsive
Superset of RESPONSIVE DIRECTIVES to show or hide items according to the size of the device screen and another features in Angular 9
Stars: ✭ 300 (+597.67%)
Mutual labels:  useragent
Shadow Useragent
Pick the most common user-agents on the Internet 👻
Stars: ✭ 147 (+241.86%)
Mutual labels:  useragent
Browser.php
A PHP Class to detect a user's Browser. This encapsulation provides a breakdown of the browser and the version of the browser using the browser's user-agent string. This is not a guaranteed solution but provides an overall accurate way to detect what browser a user is using.
Stars: ✭ 546 (+1169.77%)
Mutual labels:  useragent
Uap Ruby
A simple, comprehensive Ruby gem for parsing user agent strings with the help of BrowserScope's UA database
Stars: ✭ 188 (+337.21%)
Mutual labels:  useragent
flutter ua client hints
Provide User-Agent Client Hints to a Flutter app.
Stars: ✭ 27 (-37.21%)
Mutual labels:  useragent
iDevicesInformation
A Light Weight and Updated Code for Device Detection and many other functionality written in swift 2.0
Stars: ✭ 13 (-69.77%)
Mutual labels:  device-detection
Ng Device Detector
Angular module to detect OS / Browser / Device
Stars: ✭ 243 (+465.12%)
Mutual labels:  useragent
Mobile Device Detect
Detect mobile device and its type.
Stars: ✭ 132 (+206.98%)
Mutual labels:  useragent
Browscap Java
A blazingly fast and memory efficient (thread-safe) Java client on top of the BrowsCap CSV source files.
Stars: ✭ 123 (+186.05%)
Mutual labels:  useragent
User agent
HTTP User Agent parser for the Go programming language.
Stars: ✭ 578 (+1244.19%)
Mutual labels:  useragent
Useragentparser
UserAgent parsing done right
Stars: ✭ 225 (+423.26%)
Mutual labels:  useragent
React Device Detect
Detect device, and render view according to detected device type.
Stars: ✭ 1,145 (+2562.79%)
Mutual labels:  useragent
react-useragent
Higher order component to add user agent information to your react components
Stars: ✭ 13 (-69.77%)
Mutual labels:  useragent
bots-zoo
No description or website provided.
Stars: ✭ 59 (+37.21%)
Mutual labels:  useragent
Next Useragent
next-useragent parses browser user-agent strings for next.js
Stars: ✭ 158 (+267.44%)
Mutual labels:  useragent
ImNotSpider
浏览器User Agent生成器
Stars: ✭ 17 (-60.47%)
Mutual labels:  useragent
useragent-generator
Easily generate correct user-agent strings for popular browsers
Stars: ✭ 62 (+44.19%)
Mutual labels:  useragent
Browserslist Useragent
🦔A utility to match a browserslist query with user agent strings
Stars: ✭ 231 (+437.21%)
Mutual labels:  useragent

Codacy Badge All Contributors Build Status Greenkeeper badge Known Vulnerabilities License: MIT npm type definitions npm FOSSA Status

vue-device-detector (for Vue 3)

vue-device-detector is a simple vue plugin to inspect the device type.

  • focus on mobile
  • vue friendly
  • strong typed

TODO:

  • add dingding api
  • add weixin api

Install

npm install vue-device-detector --save

Quick Start

import device from "vue-device-detector"
Vue.use(device)

Methods

  • this.$device in Component context.
  • Vue.$device in global.

API list

you can get the following properties under this.$device

interface IDeviceDetector {
  ios: Boolean
  iphone: Boolean
  iphoneX: Boolean
  iPhoneXR: Boolean
  iPhoneXSMax: Boolean
  ipod: Boolean
  ipad: Boolean
  android: Boolean
  androidPhone: Boolean
  windows: Boolean
  mobile: Boolean
  dingding: Boolean //钉钉
  wechat: Boolean, // 微信
  wechatMiniApp: Boolean //微信小程序
}

eg. on iphoneX

console.log(this.$device.iphoneX) // true
console.log(this.$device.ios) // true
console.log(this.$device.android) // false

License

FOSSA Status

Contributors

Thanks goes to these wonderful people (emoji key):

Vincent Guo
Vincent Guo

💻 📖 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].