Skip to content

faisalman/gpu-detect-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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