1.1.4 • Published 4 years ago

use-videocard v1.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

npm.io

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

1.1.1

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago