A node module that reads the CPU architecture of a binary file.
npm install read-binary-file-arch
Pass a file path to readBinaryFileArch
.
[!NOTE]
Windows only supports valid PE binary files.
var { readBinaryFileArch } = require('read-binary-file-arch');
readBinaryFileArch(filePath).then((arch) => {
console.log('arch: ', arch);
}).catch((error) => {
console.error(error.message);
});
MIT