Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 375 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 375 Bytes

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