There is even an opportunity here to make this part of the standard library for node:os. This was initially asked about in 2017 in https://github.com/nodejs/node/issues/17036, but did not proceed due to it's complexity. Given Node.js has some different philosophies about larger standard libraries in 2024, this might be easier to revive now!
As discussed in this discord thread, https://github.com/feross/arch can probably be replaced by https://github.com/sindresorhus/system-architecture.
There is even an opportunity here to make this part of the standard library for
node:os
. This was initially asked about in 2017 in https://github.com/nodejs/node/issues/17036, but did not proceed due to it's complexity. Given Node.js has some different philosophies about larger standard libraries in 2024, this might be easier to revive now!