1.1.4 • Published 4 years ago
use-videocard v1.1.4
use-videocard
Introduction
This package is a react hook for getting the grahics card information from WebGL.
Installation
This package can be found in the NPM registry, install it using this command:
With npm:
npm install use-videocard
With yarn:
yarn add use-videocard
Example
function App() {
const graphics = useVideoCard()
useEffect(() => {
console.log(graphics?.unmasked.vendor + " " + graphics?.unmasked.renderer)
}, [])
return (
<div className="App">
</div>
);
}
Example output: NVIDIA Corporation Geforce GTX 1070/PCIe/SSE2
Contributors