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

Comparing version 1.0.0 to 1.0.1

esm.mjs

32

package.json
{
"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

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