Socket
Socket
Sign inDemoInstall

is64bit

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is64bit

Check if a binary is 32 (x86) or 64-bit (x86_64).


Version published
Weekly downloads
834K
increased by0.4%
Maintainers
1
Install size
6.48 kB
Created
Weekly downloads
 

Readme

Source

Check if a binary is 32 (x86) or 64-bit (x86_64).

📖 cf:

Example

const is64bit = require('is64bit');

is64bit("hello_world.exe").then((is64) => { 
  console.log(`64-bit: ${is64}`) //True or false
}).catch((err) => { console.error(err) });

//async/await
(async ()=>{
  try{
    let is64 = await is64bit("hello_world.exe");
  }catch(err){
    console.error(err);
  }
})();

Check binary from another platform

//Linux binary with Node running on Windows
const is64bit = require('is64bit');

is64bit("hello_world","linux") //same values as os.platform()
.then((is64) => { 
  console.log(`64-bit: ${is64}`) //True or false
}).catch((err) => { console.error(err) });

Keywords

FAQs

Last updated on 04 Aug 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc