npm.io
0.1.0 • Published 3 years ago

gpu-detect-js

Licence
MIT
Version
0.1.0
Deps
1
Size
8 kB
Vulns
0
Weekly
0
Stars
2

GPUDetect.js

Extracts GPU information from the browser

npm i gpu-detect-js

Methods

getGPU():GPUInfo

interface GPUInfo { vendor: string | undefined; model: string | undefined }

Code Example

import { GPUDetect } from 'gpu-detect-js';

const gpuInfo = GPUDetect.getGPU();
console.log(gpuInfo);
// { vendor: "AMD", model: "Radeon R9 M295X" }

Keywords