gpu-detect-js
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i gpu-detect-js

Weekly Downloads

5

Version

0.1.0

License

MIT

Unpacked Size

8.65 kB

Total Files

7

Last publish

Collaborators

  • faisalman