{"_id":"arch","_rev":"3320726","name":"arch","description":"Better `os.arch()` for node and the browser -- detect OS architecture","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"time":{"modified":"2024-06-11T09:12:20.000Z","created":"2011-10-19T17:39:03.326Z","3.0.0":"2024-02-12T03:31:33.308Z","2.2.0":"2020-10-27T22:32:59.901Z","2.1.2":"2020-05-10T17:12:35.488Z","2.1.1":"2018-06-09T22:34:51.731Z","2.1.0":"2017-01-10T10:38:29.096Z","2.0.0":"2016-09-18T04:36:36.021Z","1.0.1":"2016-09-16T23:16:44.250Z","1.0.0":"2016-09-16T21:46:43.725Z","0.0.2":"2011-10-19T17:49:30.935Z","0.0.1":"2011-10-19T17:39:03.326Z"},"users":{},"author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"repository":{"type":"git","url":"git://github.com/feross/arch.git"},"versions":{"3.0.0":{"name":"arch","description":"Better `os.arch()` for node and the browser -- detect OS architecture","version":"3.0.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"browser":"browser.js","types":"./index.d.ts","bugs":{"url":"https://github.com/feross/arch/issues"},"devDependencies":{"airtap":"^3.0.0","standard":"*","tape":"^5.0.0"},"homepage":"https://github.com/feross/arch","keywords":["browser","browserify","arch","cpu info","cpus","architecture","navigator.platform","x64","x86","64 bit","32 bit"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/arch.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"airtap --concurrency 1 -- test/*.js","test-browser-local":"airtap --preset local -- test/*.js","test-node":"tape test/*.js"},"funding":[{"type":"github","url":"https://github.com/sponsors/feross"},{"type":"patreon","url":"https://www.patreon.com/feross"},{"type":"consulting","url":"https://feross.org/support"}],"_id":"arch@3.0.0","gitHead":"22d2a87d5bce7b3555abf13f4613939c4ddeca0e","_nodeVersion":"21.6.1","_npmVersion":"10.2.4","dist":{"shasum":"a44e7077da4615fc5f1e3da21fbfc201d2c1817c","size":4082,"noattachment":false,"key":"/arch/-/arch-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-3.0.0.tgz"},"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arch_3.0.0_1707708693148_0.029465633839306227"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-12T03:31:33.308Z","publish_time":1707708693308,"_source_registry_name":"default","_cnpm_publish_time":1707708693308},"2.2.0":{"name":"arch","description":"Better `os.arch()` for node and the browser -- detect OS architecture","version":"2.2.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"browser":"browser.js","types":"./index.d.ts","bugs":{"url":"https://github.com/feross/arch/issues"},"devDependencies":{"airtap":"^3.0.0","standard":"*","tape":"^5.0.0"},"homepage":"https://github.com/feross/arch","keywords":["browser","browserify","arch","cpu info","cpus","architecture","navigator.platform","x64","x86","64 bit","32 bit"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/arch.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js","test-node":"tape test/*.js"},"funding":[{"type":"github","url":"https://github.com/sponsors/feross"},{"type":"patreon","url":"https://www.patreon.com/feross"},{"type":"consulting","url":"https://feross.org/support"}],"gitHead":"af5b7e17787ad7b8eea40f28a52557dc3411cce1","_id":"arch@2.2.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"shasum":"1bc47818f305764f23ab3306b0bfc086c5a29d11","size":3469,"noattachment":false,"key":"/arch/-/arch-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-2.2.0.tgz"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arch_2.2.0_1603837979699_0.8268372470839678"},"_hasShrinkwrap":false,"publish_time":1603837979901,"_cnpm_publish_time":1603837979901},"2.1.2":{"name":"arch","description":"Better `os.arch()` for node and the browser -- detect OS architecture","version":"2.1.2","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"browser":"browser.js","bugs":{"url":"https://github.com/feross/arch/issues"},"devDependencies":{"airtap":"^3.0.0","standard":"*","tape":"^5.0.0"},"homepage":"https://github.com/feross/arch","keywords":["browser","browserify","arch","cpu info","cpus","architecture","navigator.platform","x64","x86","64 bit","32 bit"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/arch.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js","test-node":"tape test/*.js"},"funding":[{"type":"github","url":"https://github.com/sponsors/feross"},{"type":"patreon","url":"https://www.patreon.com/feross"},{"type":"consulting","url":"https://feross.org/support"}],"gitHead":"f2d2a6136df9c898fdcdf78c5236316a8bcd519e","_id":"arch@2.1.2","_nodeVersion":"14.2.0","_npmVersion":"6.14.5","dist":{"shasum":"0c52bbe7344bb4fa260c443d2cbad9c00ff2f0bf","size":3398,"noattachment":false,"key":"/arch/-/arch-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-2.1.2.tgz"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arch_2.1.2_1589130755327_0.17878863221308716"},"_hasShrinkwrap":false,"publish_time":1589130755488,"_cnpm_publish_time":1589130755488},"2.1.1":{"name":"arch","description":"Better `os.arch()` for node and the browser -- detect OS architecture","version":"2.1.1","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"browser":"browser.js","bugs":{"url":"https://github.com/feross/arch/issues"},"devDependencies":{"airtap":"0.0.7","standard":"*","tape":"^4.0.0"},"homepage":"https://github.com/feross/arch","keywords":["browser","browserify","arch","cpu info","cpus","architecture","navigator.platform","x64","x86","64 bit","32 bit"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/arch.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"c81888cb42661b7ef58d339f051a87cf2c5a13a6","_id":"arch@2.1.1","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"8f5c2731aa35a30929221bb0640eed65175ec84e","size":3306,"noattachment":false,"key":"/arch/-/arch-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-2.1.1.tgz"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arch_2.1.1_1528583691673_0.6541298778147013"},"_hasShrinkwrap":false,"publish_time":1528583691731,"_cnpm_publish_time":1528583691731},"2.1.0":{"name":"arch","description":"Better `os.arch()` for node and the browser -- detect OS architecture","version":"2.1.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"browser":"browser.js","bugs":{"url":"https://github.com/feross/arch/issues"},"devDependencies":{"standard":"*","tape":"^4.0.0","zuul":"^3.0.0"},"homepage":"https://github.com/feross/arch","keywords":["browser","browserify","arch","cpu info","cpus","architecture","navigator.platform","x64","x86","64 bit","32 bit"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/arch.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"zuul -- test/*.js","test-browser-local":"zuul --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"136323bac96483ce316f95297c0ea32ea97dbd1b","_id":"arch@2.1.0","_shasum":"3613aa46149064b3c1f0607919bf1d4786e82889","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"3613aa46149064b3c1f0607919bf1d4786e82889","size":4767,"noattachment":false,"key":"/arch/-/arch-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-2.1.0.tgz"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/arch-2.1.0.tgz_1484044708876_0.4468883292283863"},"directories":{},"publish_time":1484044709096,"_cnpm_publish_time":1484044709096,"_hasShrinkwrap":false},"2.0.0":{"name":"arch","description":"Better `os.arch()` for node and the browser -- detect OS architecture","version":"2.0.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"browser":"browser.js","bugs":{"url":"https://github.com/feross/arch/issues"},"devDependencies":{"standard":"*","tape":"^4.0.0","zuul":"^3.0.0"},"homepage":"https://github.com/feross/arch","keywords":["browser","browserify","arch","cpu info","cpus","architecture","navigator.platform","x64","x86","64 bit","32 bit"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/arch.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"zuul -- test/*.js","test-browser-local":"zuul --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"ddf4f4de78a98b1225036c5415f27bb6412aa832","_id":"arch@2.0.0","_shasum":"cde4e7b0785c057a221f8e209bc8dc2fd29a5b08","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"cde4e7b0785c057a221f8e209bc8dc2fd29a5b08","size":4616,"noattachment":false,"key":"/arch/-/arch-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-2.0.0.tgz"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/arch-2.0.0.tgz_1474173393229_0.04215569910593331"},"directories":{},"publish_time":1474173396021,"_cnpm_publish_time":1474173396021,"_hasShrinkwrap":false},"1.0.1":{"name":"arch","description":"`os.arch()` for node and the browser","version":"1.0.1","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"browser":"browser.js","bugs":{"url":"https://github.com/feross/arch/issues"},"devDependencies":{"standard":"*","tape":"^4.0.0","zuul":"^3.0.0"},"homepage":"https://github.com/feross/arch","keywords":["browser","browserify","arch","cpu info","cpus","architecture","navigator.platform","x64","x86","64 bit","32 bit"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/arch.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"zuul -- test/*.js","test-browser-local":"zuul --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"c81d82ba93e4284c189e7043ef57e09187c24994","_id":"arch@1.0.1","_shasum":"e064cba07e060f13089692e803dcd23fd5858e13","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"e064cba07e060f13089692e803dcd23fd5858e13","size":3881,"noattachment":false,"key":"/arch/-/arch-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-1.0.1.tgz"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/arch-1.0.1.tgz_1474067801787_0.6245284497272223"},"directories":{},"publish_time":1474067804250,"_cnpm_publish_time":1474067804250,"_hasShrinkwrap":false},"1.0.0":{"name":"arch","description":"`os.arch()` for node and the browser","version":"1.0.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"browser":"browser.js","bugs":{"url":"https://github.com/feross/arch/issues"},"devDependencies":{"standard":"*","tape":"^4.0.0","zuul":"^3.0.0"},"homepage":"https://github.com/feross/arch","keywords":["browser","browserify","arch","cpu info","cpus","architecture","navigator.platform","x64","x86","64 bit","32 bit"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/arch.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"zuul -- test/*.js","test-browser-local":"zuul --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"6b90e843d1d00d14bc65093d074ae71d7b9ac118","_id":"arch@1.0.0","_shasum":"e8485f98d98f94b3e6380ad41ac6c8683b5dd22a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"e8485f98d98f94b3e6380ad41ac6c8683b5dd22a","size":3878,"noattachment":false,"key":"/arch/-/arch-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-1.0.0.tgz"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/arch-1.0.0.tgz_1474062403467_0.4864135717507452"},"directories":{},"publish_time":1474062403725,"_cnpm_publish_time":1474062403725,"_hasShrinkwrap":false},"0.0.2":{"name":"arch","version":"0.0.2","description":"A small toolkit-framework","keywords":["server","http","framework","toolkit","arch"],"author":{"name":"Jake Verbaten","email":"raynos2@gmail.com"},"dependencies":{"stak":"0.0.2","error":"0.0.1","rest":"0.0.1","fcombine":"0.0.3","after":"0.1.6","pd":"0.2.1"},"devDependencies":{"tester":"0.0.2"},"main":"src/arch","engines":{"node":"0.5.x"},"_npmJsonOpts":{"file":"/home/raynos/.npm/arch/0.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"arch@0.0.2","_engineSupported":true,"_npmVersion":"1.0.30","_nodeVersion":"v0.5.9","_defaultsLoaded":true,"dist":{"shasum":"68adfb63ff9fe68774f13ae5f4b1bf354a0de14c","size":2605,"noattachment":false,"key":"/arch/-/arch-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-0.0.2.tgz"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"directories":{},"publish_time":1319046570935,"_hasShrinkwrap":false,"_cnpm_publish_time":1319046570935},"0.0.1":{"name":"arch","version":"0.0.1","description":"A small toolkit-framework","keywords":["server","http","framework","toolkit","arch"],"author":{"name":"Jake Verbaten","email":"raynos2@gmail.com"},"dependencies":{"stak":"0.0.2","error":"0.0.1","rest":"0.0.1","fcombine":"0.0.3","after":"0.1.6","pd":"0.2.1"},"devDependencies":{"tester":"0.0.2"},"main":"src/arch","engines":{"node":"0.5.x"},"_npmJsonOpts":{"file":"/home/raynos/.npm/arch/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"arch@0.0.1","_engineSupported":true,"_npmVersion":"1.0.30","_nodeVersion":"v0.5.9","_defaultsLoaded":true,"dist":{"shasum":"26cb6401c3aa678f44207cd909cb03d97e968563","size":2604,"noattachment":false,"key":"/arch/-/arch-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/arch/download/arch-0.0.1.tgz"},"maintainers":[{"name":"feross","email":""},{"name":"raynos","email":""}],"directories":{},"publish_time":1319045943326,"_hasShrinkwrap":false,"_cnpm_publish_time":1319045943326}},"readme":"# arch [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[ci-image]: https://img.shields.io/github/workflow/status/feross/arch/ci/master\n[ci-url]: https://github.com/feross/arch/actions\n[npm-image]: https://img.shields.io/npm/v/arch.svg\n[npm-url]: https://npmjs.org/package/arch\n[downloads-image]: https://img.shields.io/npm/dm/arch.svg\n[downloads-url]: https://npmjs.org/package/arch\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Better `os.arch()` for node and the browser -- detect OS architecture\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/arch2.svg)](https://saucelabs.com/u/arch2)\n\nThis module is used by [WebTorrent Desktop](http://webtorrent.io/desktop) to\ndetermine if the user is on a 32-bit vs. 64-bit operating system to offer the\nright app installer.\n\nIn Node.js, the `os.arch()` method (and `process.arch` property) returns a string\nidentifying the operating system CPU architecture **for which the Node.js binary\nwas compiled**.\n\nThis is not the same as the **operating system CPU architecture**. For example,\nyou can run Node.js 32-bit on a 64-bit OS. In that situation, `os.arch()` will\nreturn a misleading 'x86' (32-bit) value, instead of 'x64' (64-bit).\n\nUse this package to get the actual operating system CPU architecture.\n\n**BONUS: This package works in the browser too.**\n\n## install\n\n```\nnpm install arch\n```\n\n## usage\n\n```js\nvar arch = require('arch')\nconsole.log(arch()) // always returns 'x64' or 'x86'\n```\n\nIn the browser, there is no spec that defines where this information lives, so we\ncheck all known locations including `navigator.userAgent`, `navigator.platform`,\nand `navigator.cpuClass` to make a best guess.\n\nIf there is no *affirmative indication* that the architecture is 64-bit, then\n32-bit will be assumed. This makes this package perfect for determining what\ninstaller executable to offer to desktop app users. If there is ambiguity, then\nthe user will get the 32-bit installer, which will work fine even for a user with\na 64-bit OS.\n\nFor reference, `x64` means 64-bit and `x86` means 32-bit.\n\nHere is some history behind these naming conventions:\n\n- https://en.wikipedia.org/wiki/X86\n- https://en.wikipedia.org/wiki/IA-32\n- https://en.wikipedia.org/wiki/X86-64\n\n## Node.js proposal - `os.sysarch()`\n\nNote: There is\n[a proposal](https://github.com/nodejs/node-v0.x-archive/issues/2862#issuecomment-103942051)\nto add this functionality to Node.js as `os.sysarch()`.\n\n## license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n","_attachments":{},"homepage":"https://github.com/feross/arch","bugs":{"url":"https://github.com/feross/arch/issues"},"license":"MIT"}