arch icon indicating copy to clipboard operation
arch copied to clipboard

Better `os.arch()` for node and the browser -- detect OS architecture

Results 10 arch issues
Sort by recently updated
recently updated
newest added

```js const {bitness} = await navigator.userAgentData.getHighEntropyValues(['bitness']); ``` See: - https://wicg.github.io/ua-client-hints/#user-agent-platform-bitness - https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/getHighEntropyValues#return_value

This also distinguishes whether x64 Node is running because we're actually on an Intel Mac or if it's just [Rosetta 2](https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment) pretending to be one. If there's someone smarter than...

I have a CLI tool that installs different binaries depending on the system architecture, and it worked fine so far for Windows, macOS and Intel GNU/Linux, but when I tried...

enhancement
help wanted

Just use environment variables `PROCESSOR_ARCHITEW6432`/`PROCESSOR_ARCHITECTURE` on win32 instead of checking paths. Closes #26. Bonus when running as x86: probably much faster and works with no IO access. Also ~10% smaller...

Hi, Hope you will be fine. I'm not sure how many people suggest this issue, (I think many people :). Honestly by adding this feature many packages wont work correctly,...

I noticed this module always reports `x64` on 64-bit systems, but does not make the same kind of additional checks as Darwin for Linux. [Linux does run on other architectures](https://stackoverflow.com/a/48679326/398713);...

This proposal has been closed, with the issue noting that the feross/arch package satisfies the needs well enough. See https://github.com/nodejs/node/issues/17036 and the [comment](https://github.com/nodejs/node/issues/17036#issuecomment-389469473). The readme should no longer link to...

Trying to run software ([`serve`](https://www.npmjs.com/package/serve)) that transitively requires `arch` on [`gcr.io/distroless/nodejs24-debian12`](https://github.com/GoogleContainerTools/distroless/tree/main) fails with an ENOENT error since there is no way to run `/bin/sh -c "getconf LONG_BIT"` (as distroless images...