Skip to content

About

Node.js package for detecting AVX instruction set support on x86 processors

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

detect-avx

CI npm version npm downloads

A Node.js package for detecting AVX instruction set support on x86 processors.

Installation

pnpm add detect-avx

Tip

Building a Vite app? vite-plugin-native-modules handles detect-avx automatically.

Usage

import detectAvx from "detect-avx";

const result = detectAvx();
console.log(result); // 'avx2', 'avx', or 'none'

Return Values

  • 'avx2' - CPU supports AVX2 instructions
  • 'avx' - CPU supports AVX instructions (but not AVX2)
  • 'none' - CPU does not support AVX instructions (or running on non-x86 platform like ARM)

License

MIT

About

Node.js package for detecting AVX instruction set support on x86 processors

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages