{"_id":"system-architecture","_rev":"3461221","name":"system-architecture","description":"Get the operating system CPU architecture","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2024-08-27T19:35:39.000Z","created":"2023-10-23T07:48:25.012Z","1.0.0":"2024-08-18T07:34:24.123Z","0.1.0":"2023-10-23T07:48:25.012Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/system-architecture.git"},"versions":{"1.0.0":{"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":{"shasum":"0e71d7678d3d3b2fabfac0e00ea0306b14f8a532","size":2222,"noattachment":false,"key":"/system-architecture/-/system-architecture-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/system-architecture/download/system-architecture-1.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/system-architecture_1.0.0_1723966463951_0.5078179938209617"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-18T07:34:24.123Z","publish_time":1723966464123,"_source_registry_name":"default","_cnpm_publish_time":1723966464123},"0.1.0":{"name":"system-architecture","version":"0.1.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"},"engines":{"node":">=18"},"sideEffects":false,"scripts":{"test":"xo && ava"},"keywords":["arch","architecture","cpu","arm64","arm","x64","x86","64-bit","32-bit","bitness","detect","check"],"devDependencies":{"ava":"^5.3.1","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"7ff1bab3c654e4d759f80a1c986b1e3eb8970a70","bugs":{"url":"https://github.com/sindresorhus/system-architecture/issues"},"homepage":"https://github.com/sindresorhus/system-architecture#readme","_id":"system-architecture@0.1.0","_nodeVersion":"18.17.1","_npmVersion":"9.2.0","dist":{"shasum":"71012b3ac141427d97c67c56bc7921af6bff122d","size":2185,"noattachment":false,"key":"/system-architecture/-/system-architecture-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/system-architecture/download/system-architecture-0.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/system-architecture_0.1.0_1698047304778_0.6139406472936626"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-23T07:48:25.012Z","publish_time":1698047305012,"_source_registry_name":"default","_cnpm_publish_time":1698047305012}},"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","_attachments":{},"homepage":"https://github.com/sindresorhus/system-architecture#readme","bugs":{"url":"https://github.com/sindresorhus/system-architecture/issues"},"license":"MIT"}