gpu-detect-js
v0.1.0
Published
Extracts GPU information from the browser
Downloads
19
Maintainers
Readme
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" }