{"name":"system-architecture","version":"1.0.0","description":"Get the operating system CPU architecture","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/system-architecture.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava"},"keywords":["arch","architecture","cpu","arm64","arm","x64","x86","64-bit","32-bit","bitness","detect","check"],"devDependencies":{"ava":"^6.1.3","xo":"^0.59.3"},"_id":"system-architecture@1.0.0","gitHead":"771e351986a2e47da7fc0c007d41a7a8b8a3f01c","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/system-architecture/issues"},"homepage":"https://github.com/sindresorhus/system-architecture#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"integrity":"sha512-0OJWD12D7XX3KUg1DYkMaTTjSTo2k/mhIYI3HlBlceXSMcJhW/1qO735fPKS5prcyjvn57Ub151vvASYXpQrEw==","shasum":"0e71d7678d3d3b2fabfac0e00ea0306b14f8a532","tarball":"http://registry-npm.ywwl.com/system-architecture/download/system-architecture-1.0.0.tgz","fileCount":5,"unpackedSize":5333,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGifW9dlUXpdqY5Pyh5Y046vZk+TRZQTG0uAotYz15OVAiEA9a9/N+HitAQqxg2332Pow+W7+hBa4VhzLZSE0IU1buU="}],"size":2222,"noattachment":false,"key":"/system-architecture/-/system-architecture-1.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/system-architecture_1.0.0_1723966463951_0.5078179938209617"},"_hasShrinkwrap":false,"readme":"# system-architecture\n\n> Get the operating system CPU architecture\n\n[`process.arch` / `os.arch()`](https://nodejs.org/api/process.html#processarch) is generally not useful as it returns the CPU architecture for which the Node.js binary was compiled, not the actual system architecture.\n\nFor browser usage, you probably want [`is64bit`](https://github.com/sindresorhus/is64bit) instead.\n\n## Install\n\n```sh\nnpm install system-architecture\n```\n\n## Usage\n\n```js\nimport {systemArchitecture} from 'system-architecture';\n\n// On ARM64 macOS\nconsole.log(await systemArchitecture());\n//=> 'arm64'\n```\n\n## API\n\n### systemArchitecture()\n\nReturns a promise for a CPU architecture name. See [`process.arch`](https://nodejs.org/api/process.html#processarch) for possible values.\n\n### systemArchitectureSync()\n\nReturns a CPU architecture name. See [`process.arch`](https://nodejs.org/api/process.html#processarch) for possible values.\n\n## Note\n\nThis should really be in Node.js core, but they are [not pragmatic](https://github.com/nodejs/node/issues/17036).\n\n## Related\n\n- [is64bit](https://github.com/sindresorhus/is64bit) - Check whether operating system CPU architecture is 64-bit or 32-bit\n","publish_time":1723966464123,"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_cnpm_publish_time":1723966464123,"dist-tags":{"latest":"1.0.0"}}