{"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":{"integrity":"sha512-BLM56aPo9vLLFVa8+/+pJLnrZ7QGGTVHWsCwieAWT9o9K8UeGaQbzZbGoabWLOo2ksBCztoXdqBZBplqLDDCSg==","shasum":"8f5c2731aa35a30929221bb0640eed65175ec84e","tarball":"http://registry-npm.ywwl.com/arch/download/arch-2.1.1.tgz","fileCount":5,"unpackedSize":7317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHFYMCRA9TVsSAnZWagAAVFoP/3p1tkkzfXzr5g9h8gOD\nJ6nfPUsyG0LgiNU5PFQ5JYJEN3eCHa/H9qbj37/Mm1iEji5+MFteWkizEtdB\nkzK2K7y8ZrCdx4z0R7tDAZkA7NvJFOAzqMWnBZkdgON1d0TpbFsCcXPmkllG\nOmzZAUUzbKTi9ePA/yHQ6pWp/aD2Cs1FF9WyjbeA/uXQo/y+/H3p6wVwlp85\nTRbkApet8jsPl277e8XgRpYwrOgm/hwaw+Q8CQg8OfSwaxfiwkmv/vyV1EKi\n19lAriKxDdvDDdcJ5RdsM0tgD+/OoT0yar2y593v/OooV2Vyn1kp9tI8FnZ/\nJxkxMEvAPPxg7voneO+op9YvSHqNte/SE6+DJm8uQCWWU0bo2DQ9Xnvot9S2\nW6zxXKnv8f1IdlmP001/93tvxV1XdZoLOxJIDMRVTRCQIdd0fk4c5gQmY8Rc\n96UWTBCcB37EdpgulpeUZYQUckDIxN6epZi35MI9zCXG1tsRV7rsD2uYOlhC\nPeGuM0qX4G82L/81xHNEBsg+FnvJiLwzP0qOhUU/xOLRkzK58zGh8WXM3LCP\nN2ByXJH8MLz5Mgnkmi5FmVld4+v0V+eaBhLfP1qjVfTC02HipVk+nVZXt095\n9ngwRCUj09jCe1qQd3ZjXO1FmY41gnNE8Eq0ro1lQaocz4g74thcZ3J2GlYY\nXXMW\r\n=IWmp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHmIpFIYKvCWt3LZ4uqa1B2LwHZ+P5W9sJt486O9yjwAiB76+8n4/w0iGTB8GXZYcWbrpsvZ7X/U1Obyd5uRZ2wcA=="}],"size":3306,"noattachment":false,"key":"/arch/-/arch-2.1.1.tgz"},"maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"raynos","email":"raynos2@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arch_2.1.1_1528583691673_0.6541298778147013"},"_hasShrinkwrap":false,"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","publish_time":1528583691731,"_cnpm_publish_time":1528583691731,"dist-tags":{"latest":"3.0.0"}}