mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Update readme to include getGPU() method
This commit is contained in:
parent
b29e74d61c
commit
437d05a653
16
readme.md
16
readme.md
@ -18,7 +18,7 @@
|
|||||||
* returns new instance
|
* returns new instance
|
||||||
|
|
||||||
* `UAParser([uastring][,extensions])`
|
* `UAParser([uastring][,extensions])`
|
||||||
* returns result object `{ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, os: {} }`
|
* returns result object `{ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, gpu: {}, os: {} }`
|
||||||
|
|
||||||
# Methods
|
# Methods
|
||||||
|
|
||||||
@ -94,6 +94,16 @@ Ubuntu, Unix, VectorLinux, WebOS, Windows [Phone/Mobile], Zenwalk, ...
|
|||||||
68k, amd64, arm[64], avr, ia[32/64], irix[64], mips[64], pa-risc, ppc, sparc[64]
|
68k, amd64, arm[64], avr, ia[32/64], irix[64], mips[64], pa-risc, ppc, sparc[64]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* `getGPU()`
|
||||||
|
* returns `{ vendor: '', model: '' }`
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Possible 'gpu.vendor'
|
||||||
|
ATI, Intel, NVIDIA, Qualcomm, SiS
|
||||||
|
|
||||||
|
# 'gpu.model' determined dynamically
|
||||||
|
```
|
||||||
|
|
||||||
* `getResult()`
|
* `getResult()`
|
||||||
* returns `{ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, os: {} }`
|
* returns `{ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, os: {} }`
|
||||||
|
|
||||||
@ -141,6 +151,10 @@ Ubuntu, Unix, VectorLinux, WebOS, Windows [Phone/Mobile], Zenwalk, ...
|
|||||||
},
|
},
|
||||||
cpu: {
|
cpu: {
|
||||||
architecture: ""
|
architecture: ""
|
||||||
|
},
|
||||||
|
gpu: {
|
||||||
|
vendor: "",
|
||||||
|
model: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user