1 line
5.6 KiB
Plaintext
1 line
5.6 KiB
Plaintext
{"_id":"system-architecture","_rev":"1-ee8785e404c13109d3a70d9c3038c287","name":"system-architecture","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"system-architecture","version":"0.1.0","keywords":["arch","architecture","cpu","arm64","arm","x64","x86","64-bit","32-bit","bitness","detect","check"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"system-architecture@0.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/system-architecture#readme","bugs":{"url":"https://github.com/sindresorhus/system-architecture/issues"},"dist":{"shasum":"71012b3ac141427d97c67c56bc7921af6bff122d","tarball":"https://registry.npmjs.org/system-architecture/-/system-architecture-0.1.0.tgz","fileCount":5,"integrity":"sha512-ulAk51I9UVUyJgxlv9M6lFot2WP3e7t8Kz9+IS6D4rVba1tR9kON+Ey69f+1R4Q8cd45Lod6a4IcJIxnzGc/zA==","signatures":[{"sig":"MEQCIG4wd07LMCBNgPviK6Mv62yCgZ5FeNtt+ldpWMuD3v8PAiAP1GxG0fnj2q8Mx/0C1AUO4BQ14nogzhfvpdDjkvxVdg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5373},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"7ff1bab3c654e4d759f80a1c986b1e3eb8970a70","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/system-architecture.git","type":"git"},"_npmVersion":"9.2.0","description":"Get the operating system CPU architecture","directories":{},"sideEffects":false,"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1"},"_npmOperationalInternal":{"tmp":"tmp/system-architecture_0.1.0_1698047304778_0.6139406472936626","host":"s3://npm-registry-packages"}},"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":{"integrity":"sha512-0OJWD12D7XX3KUg1DYkMaTTjSTo2k/mhIYI3HlBlceXSMcJhW/1qO735fPKS5prcyjvn57Ub151vvASYXpQrEw==","shasum":"0e71d7678d3d3b2fabfac0e00ea0306b14f8a532","tarball":"https://registry.npmjs.org/system-architecture/-/system-architecture-1.0.0.tgz","fileCount":5,"unpackedSize":5333,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGifW9dlUXpdqY5Pyh5Y046vZk+TRZQTG0uAotYz15OVAiEA9a9/N+HitAQqxg2332Pow+W7+hBa4VhzLZSE0IU1buU="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/system-architecture_1.0.0_1723966463951_0.5078179938209617"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-23T07:48:24.778Z","modified":"2024-08-18T07:34:24.296Z","0.1.0":"2023-10-23T07:48:25.012Z","1.0.0":"2024-08-18T07:34:24.123Z"},"bugs":{"url":"https://github.com/sindresorhus/system-architecture/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/system-architecture#readme","keywords":["arch","architecture","cpu","arm64","arm","x64","x86","64-bit","32-bit","bitness","detect","check"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/system-architecture.git"},"description":"Get the operating system CPU architecture","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"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","readmeFilename":"readme.md"} |