arch
arch copied to clipboard
feat: use simpler env vars for win32
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 filesize.
Agreed, this is a lot simpler and probably faster. @feross do you see something wrong with this approach?
Fixed formatting to be like the rest of the repo.
Updated to return 'arm64' on such systems now too.
Removed now unused imports in index.js.