{"_id":"@cjser/system-architecture__v0_1_0","name":"@cjser/system-architecture__v0_1_0","dist-tags":{"latest":"0.1.0-cjser.2"},"versions":{"0.1.0-cjser.2":{"name":"@cjser/system-architecture__v0_1_0","version":"0.1.0-cjser.2","description":"Get the operating system CPU architecture","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.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","require":"./dist-cjser/index.cjs","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","main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"0.1.0","cjserVersion":2,"original":{"name":"system-architecture","version":"0.1.0","exports":{"types":"./index.d.ts","default":"./index.js"},"repository":"sindresorhus/system-architecture","files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava"}}},"_id":"@cjser/system-architecture__v0_1_0@0.1.0-cjser.2","gitHead":"0168e4aac54a1a9ca6f921419fa5ed9edb53ef4a","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-jORZueZKnPGQ9dZ7JX9NF1wGhPjumOi+IOLxdHOc+YigrCpAqnpGYV5IYfBysYf6SNOQN8KsmwTiLxteqZpPTQ==","shasum":"6b203af7b14c1f1e87d149a619c6972988232ce8","tarball":"https://registry.npmjs.org/@cjser/system-architecture__v0_1_0/-/system-architecture__v0_1_0-0.1.0-cjser.2.tgz","fileCount":6,"unpackedSize":9888,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDdjknkxm1BNJKvLUDJbv3dBA8nN9cPt/rumq9jVIlryAiEAwt92DQFlUdbEETKEj/Sye/Qeps9eGrRXw+cAkVVrK5U="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/system-architecture__v0_1_0_0.1.0-cjser.2_1778131084495_0.03538563926548921"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T05:18:04.392Z","0.1.0-cjser.2":"2026-05-07T05:18:04.658Z","modified":"2026-05-07T05:18:04.905Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Get the operating system CPU architecture","keywords":["arch","architecture","cpu","arm64","arm","x64","x86","64-bit","32-bit","bitness","detect","check"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/system-architecture\n","readmeFilename":"readme.md","_rev":"1-f53559a7dfc6c64939094e2443b15a3a"}