112 lines
5.2 KiB
JSON
112 lines
5.2 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "arch@^2.1.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "arch",
|
||
|
"name": "arch",
|
||
|
"rawSpec": "^2.1.0",
|
||
|
"spec": ">=2.1.0 <3.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/clipboardy"
|
||
|
]
|
||
|
],
|
||
|
"_from": "arch@>=2.1.0 <3.0.0",
|
||
|
"_id": "arch@2.1.0",
|
||
|
"_inCache": true,
|
||
|
"_location": "/arch",
|
||
|
"_nodeVersion": "6.9.2",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "packages-12-west.internal.npmjs.com",
|
||
|
"tmp": "tmp/arch-2.1.0.tgz_1484044708876_0.4468883292283863"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "feross",
|
||
|
"email": "feross@feross.org"
|
||
|
},
|
||
|
"_npmVersion": "3.10.9",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "arch@^2.1.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "arch",
|
||
|
"name": "arch",
|
||
|
"rawSpec": "^2.1.0",
|
||
|
"spec": ">=2.1.0 <3.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/clipboardy"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/arch/-/arch-2.1.0.tgz",
|
||
|
"_shasum": "3613aa46149064b3c1f0607919bf1d4786e82889",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "arch@^2.1.0",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/clipboardy",
|
||
|
"author": {
|
||
|
"name": "Feross Aboukhadijeh",
|
||
|
"email": "feross@feross.org",
|
||
|
"url": "http://feross.org/"
|
||
|
},
|
||
|
"browser": "browser.js",
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/feross/arch/issues"
|
||
|
},
|
||
|
"dependencies": {},
|
||
|
"description": "Better `os.arch()` for node and the browser -- detect OS architecture",
|
||
|
"devDependencies": {
|
||
|
"standard": "*",
|
||
|
"tape": "^4.0.0",
|
||
|
"zuul": "^3.0.0"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "3613aa46149064b3c1f0607919bf1d4786e82889",
|
||
|
"tarball": "https://registry.npmjs.org/arch/-/arch-2.1.0.tgz"
|
||
|
},
|
||
|
"gitHead": "136323bac96483ce316f95297c0ea32ea97dbd1b",
|
||
|
"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",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "feross",
|
||
|
"email": "feross@feross.org"
|
||
|
},
|
||
|
{
|
||
|
"name": "raynos",
|
||
|
"email": "raynos2@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "arch",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# arch [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]\n\n[travis-image]: https://img.shields.io/travis/feross/arch/master.svg\n[travis-url]: https://travis-ci.org/feross/arch\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\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",
|
||
|
"readmeFilename": "README.md",
|
||
|
"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"
|
||
|
},
|
||
|
"version": "2.1.0"
|
||
|
}
|