Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dukegod/isclient
detect user agent for web!
https://github.com/dukegod/isclient
javascript webpack3
Last synced: 8 days ago
JSON representation
detect user agent for web!
- Host: GitHub
- URL: https://github.com/dukegod/isclient
- Owner: dukegod
- Created: 2015-07-11T08:59:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-18T14:14:48.000Z (over 6 years ago)
- Last Synced: 2025-01-11T20:41:08.670Z (8 days ago)
- Topics: javascript, webpack3
- Language: JavaScript
- Homepage: http://blog.stakecode.com/isClient/index.html
- Size: 344 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
detect your client's userAgent
Android or iPhone or weixin or mobile
### install
```js
const isClient = require('isClient');
// or
import isClient from 'isclient';// iphone
const isIphone = isClient.iPhone
```print different client's userAgent, return `Boolean value`
```text
node: isClient.node
window: isClient.node
firefox: isClient.gecko
IE: isClient.ie
opera: isClient.opera
android: isClient.android
ios: isClient.ios
mobile: isClient.mobile
iPhone: isClient.iPhone
aiPad: isClient.iPad
safari: isClient.safari
weixin: isClient.wx
jdapp: isClient.jdapp
chrome: isClient.chrome
```