is64bit
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "is64bit", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Check if a binary is 32 (x86) or 64-bit (x86_64).", | ||
"main": "is64bit.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/xan105/node-is64bit.git" | ||
"type": "module", | ||
"main": "is64bit.cjs", | ||
"exports": { | ||
"import": "./esm.mjs", | ||
"require": "./is64bit.cjs" | ||
}, | ||
"engines": { | ||
"node": ">=0.12" | ||
}, | ||
"scripts": { | ||
"lint": "npx eslint --ignore-path .gitignore ./**/*.{cjs,mjs}" | ||
}, | ||
"keywords": [ | ||
@@ -21,8 +28,19 @@ "executable", | ||
], | ||
"author": "Anthony Beaumont", | ||
"author": { | ||
"name": "Anthony Beaumont", | ||
"email": "dev.xan105@outlook.be", | ||
"url": "https://xan105.com/" | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/xan105/node-is64bit.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/xan105/node-is64bit/issues" | ||
}, | ||
"homepage": "https://github.com/xan105/node-is64bit#readme" | ||
"homepage": "https://github.com/xan105/node-is64bit#readme", | ||
"devDependencies": { | ||
"eslint": "^7.6.0" | ||
} | ||
} |
Check if a binary is 32 (x86) or 64-bit (x86_64).<br /> | ||
📖 cf: | ||
- https://docs.microsoft.com/en-us/windows/win32/debug/pe-format | ||
- https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#machine-types | ||
- https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header | ||
Example | ||
@@ -23,3 +28,3 @@ ======= | ||
Checking binary from another platform | ||
Check binary from another platform | ||
===================================== | ||
@@ -34,2 +39,2 @@ ```js | ||
}).catch((err) => { console.error(err) }); | ||
``` | ||
``` |
Sorry, the diff of this file is not supported yet
6639
5
81
39
Yes
1