{"id":17034170,"url":"https://github.com/dreambo8563/vue-device-detector","last_synced_at":"2025-04-12T12:52:08.821Z","repository":{"id":34290225,"uuid":"174473811","full_name":"dreambo8563/vue-device-detector","owner":"dreambo8563","description":"A tiny device detector plugin of Vue for mobile🐔👁","archived":false,"fork":false,"pushed_at":"2023-01-03T17:30:10.000Z","size":5575,"stargazers_count":47,"open_issues_count":41,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T07:36:30.454Z","etag":null,"topics":["device-detection","mobile","typescript","useragent","vue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dreambo8563.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-08T05:18:52.000Z","updated_at":"2025-01-30T07:37:55.000Z","dependencies_parsed_at":"2023-01-15T05:55:26.891Z","dependency_job_id":null,"html_url":"https://github.com/dreambo8563/vue-device-detector","commit_stats":null,"previous_names":["dreambo8563/vue-devicedetector"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreambo8563%2Fvue-device-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreambo8563%2Fvue-device-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreambo8563%2Fvue-device-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreambo8563%2Fvue-device-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreambo8563","download_url":"https://codeload.github.com/dreambo8563/vue-device-detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571570,"owners_count":21126519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["device-detection","mobile","typescript","useragent","vue"],"created_at":"2024-10-14T08:37:36.399Z","updated_at":"2025-04-12T12:52:08.791Z","avatar_url":"https://github.com/dreambo8563.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Codacy Badge](https://api.codacy.com/project/badge/Grade/38f22883688b438db21d672e1d4d3daf)](https://www.codacy.com/app/dreambo8563/vue-DeviceDetector?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=dreambo8563/vue-DeviceDetector\u0026utm_campaign=Badge_Grade)\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)\n[![Build Status](https://travis-ci.com/dreambo8563/vue-DeviceDetector.svg?branch=master)](https://travis-ci.com/dreambo8563/vue-DeviceDetector)\n[![Greenkeeper badge](https://badges.greenkeeper.io/dreambo8563/vue-DeviceDetector.svg)](https://greenkeeper.io/)\n[![Known Vulnerabilities](https://snyk.io/test/github/dreambo8563/vue-DeviceDetector/badge.svg?targetFile=package.json)](https://snyk.io/test/github/dreambo8563/vue-DeviceDetector?targetFile=package.json)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![npm type definitions](https://img.shields.io/npm/types/vue-device-detector.svg?style=flat)\n![npm](https://img.shields.io/npm/dt/vue-device-detector.svg?style=flat)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fdreambo8563%2Fvue-DeviceDetector.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fdreambo8563%2Fvue-DeviceDetector?ref=badge_shield)\n\n# vue-device-detector ([for Vue 3](https://github.com/dreambo8563/next-vue-device-detector))\n\n![](https://raw.githubusercontent.com/dreambo8563/static-assets/master/watcher2.png)\n\n**vue-device-detector** is a simple vue plugin to inspect the device type.\n\n- focus on mobile\n- vue friendly\n- strong typed\n\nTODO:\n\n- [x] add dingding api\n- [x] add weixin api\n\n### Install\n\n```cmd\nnpm install vue-device-detector --save\n```\n\n### Quick Start\n\n```js\nimport device from \"vue-device-detector\"\nVue.use(device)\n```\n\n### Methods\n\n- this.\\$device in Component context.\n- Vue.\\$device in global.\n\n### API list\n\nyou can get the following properties under this.\\$device\n\n```ts\ninterface IDeviceDetector {\n  ios: Boolean\n  iphone: Boolean\n  iphoneX: Boolean\n  iPhoneXR: Boolean\n  iPhoneXSMax: Boolean\n  ipod: Boolean\n  ipad: Boolean\n  android: Boolean\n  androidPhone: Boolean\n  windows: Boolean\n  mobile: Boolean\n  dingding: Boolean //钉钉\n  wechat: Boolean, // 微信\n  wechatMiniApp: Boolean //微信小程序\n}\n```\n\neg.\non iphoneX\n\n```js\nconsole.log(this.$device.iphoneX) // true\nconsole.log(this.$device.ios) // true\nconsole.log(this.$device.android) // false\n```\n\n## License\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fdreambo8563%2Fvue-DeviceDetector.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fdreambo8563%2Fvue-DeviceDetector?ref=badge_large)\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/all-contributors/all-contributors#emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n| [\u003cimg src=\"https://avatars2.githubusercontent.com/u/6948318?v=4\" width=\"100px;\" alt=\"Vincent Guo\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eVincent Guo\u003c/b\u003e\u003c/sub\u003e](https://dreambo8563.github.io/)\u003cbr /\u003e[💻](https://github.com/dreambo8563/vue-DeviceDetector/commits?author=dreambo8563 \"Code\") [📖](https://github.com/dreambo8563/vue-DeviceDetector/commits?author=dreambo8563 \"Documentation\") [🚇](#infra-dreambo8563 \"Infrastructure (Hosting, Build-Tools, etc)\") |\n| :---: |\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreambo8563%2Fvue-device-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreambo8563%2Fvue-device-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreambo8563%2Fvue-device-detector/lists"}