Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faisalman/gpu-detect-js
Detect & Extract GPU info from the Browser
https://github.com/faisalman/gpu-detect-js
detect-gpu gpu-detect gpu-detection gpu-information ua-parser-js
Last synced: about 1 month ago
JSON representation
Detect & Extract GPU info from the Browser
- Host: GitHub
- URL: https://github.com/faisalman/gpu-detect-js
- Owner: faisalman
- License: mit
- Created: 2023-09-08T07:07:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-08T07:20:01.000Z (about 1 year ago)
- Last Synced: 2024-09-28T15:51:07.794Z (about 2 months ago)
- Topics: detect-gpu, gpu-detect, gpu-detection, gpu-information, ua-parser-js
- Language: TypeScript
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
- License: LICENSE
Awesome Lists containing this project
README
# GPUDetect.js
Extracts GPU information from the browser```sh
npm i gpu-detect-js
```## Methods
`getGPU():GPUInfo`
`interface GPUInfo { vendor: string | undefined; model: string | undefined }`
## Code Example
```js
import { GPUDetect } from 'gpu-detect-js';const gpuInfo = GPUDetect.getGPU();
console.log(gpuInfo);
// { vendor: "AMD", model: "Radeon R9 M295X" }
```