Skip to content

danielbolognani/binary-bit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

binary-bit

Description

NPM package to test if binary is 64 or 32 bits

Installation

npm i binary-bit

Exported Functions

binaryBit(binFile)

Return "32", "64" or "unknow"

is64bits(binFile)

Return true if it is a 64 bits binary

is32bits(binFile)

Return true if it is a 32 bits binary

Usage

Simple Example

#!/usr/bin/env node
const binarybit = require('binary-bit')

var binFile = "C:\temp\example.exe";
var result = binarybit.binaryBit(binFile);
if (result == "32")
	console.log("32 bit binary");
else if(result == "64")
	console.log("64 bit binary");
else
	console.log("Is this a binary file?");

About

NodeJs script to test if binary is 64 or 32 bits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published