Skip to content

Enums : CPUArch

csv
68K, ALPHA, ARM, ARM_64, ARM_HF, AVR, AVR_32, IA64, IRIX, IRIX_64, MIPS, 
MIPS_64, PA_RISC, PPC, SPARC, SPARC_64, X86, X86_64

INFO

See list of possible cpu architecture here.

Code Example

arm-detect.js
js
import { UAParser } from 'ua-parser-js'; 
import { CPUArch } from 'ua-parser-js/enums';

if (UAParser().cpu.is(CPUArch.ARM)) {
    console.log('Download the ARM build of this amazing software');
}

UAParser.js v2 is licensed under AGPLv3 or PRO licenses.