Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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" }
```