0.1.0 • Published 8 months ago

gpu-detect-js v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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