Unfortunately, it is not possible to get the system architecture (i.e. 64-bit or 32-bit) directly from JavaScript running in a browser. However, if you are working with Node.js, you can use the os
module to get this information.
Here's an example of how to use the os
module to get the system architecture in Node.js:
index.tsx97 chars6 lines
This will output something like "System Architecture: x64" or "System Architecture: ia32", depending on the architecture of the machine running the Node.js process.
gistlibby LogSnag