Skip to content

axelstudios/get-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-architecture

A tiny Node utility to detect whether .exe and .dll files are 32 or 64-bit.

Installation

$ npm install get-architecture

Usage

get-architecture exposes a function; simply pass this function the path of a .exe or .dll to test and it will return a promise resolving to x86, x64, or rejecting with Unknown.

const getArchitecture = require('get-architecture');

(async () => {
  const arch = await getArchitecture('myFile.exe');
  console.log(arch); // 'x64'
})();

About

Binary file architecture detector

Resources

License

Stars

Watchers

Forks

Packages

No packages published