Wraps
os.arch()
to distinguish ARM versions. Meant for selecting an appropriate prebuilt binary.
const arch = require('build-arch')
console(arch())
The current possible values are: 'armv8'
, 'armv7'
, 'armv6'
, 'ia32'
, 'mips'
, 'mipsel'
, 'ppc'
, 'ppc64'
, 's390'
, 's390x'
, 'x32'
and 'x64'
.
With npm do:
npm install build-arch