{"_id":"chrome-paths","_rev":"3672423","name":"chrome-paths","description":"Possible paths or binary names of Chrome, Chrome Canary and Chromium in the current platform","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"time":{"modified":"2025-02-13T05:41:31.000Z","created":"2018-07-25T09:01:22.520Z","1.0.1":"2019-02-06T11:11:43.845Z","1.0.0":"2018-07-30T00:29:57.954Z","0.1.0":"2018-07-26T06:35:46.943Z","0.0.0":"2018-07-25T09:01:22.520Z"},"users":{},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"repository":{"type":"git","url":"git+https://github.com/shinnn/chrome-paths.git"},"versions":{"1.0.1":{"name":"chrome-paths","version":"1.0.1","description":"Possible paths or binary names of Chrome, Chrome Canary and Chromium in the current platform","author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"repository":{"type":"git","url":"git+https://github.com/shinnn/chrome-paths.git"},"license":"ISC","scripts":{"pretest":"eslint .","test":"node test.js"},"keywords":["chrome","chromium","canary","darwin","macos","linux","windown","cross-platform","path","paths","locate","location","executable"],"dependencies":{"karma-chrome-launcher":"^2.2.0"},"devDependencies":{"@shinnn/eslint-config":"^6.8.9","eslint":"^5.12.1","isexe":"^2.0.0","tape":"^4.9.2"},"eslintConfig":{"extends":"@shinnn"},"gitHead":"4422c1e66797b48fe1d71993c3c369723f8952a1","bugs":{"url":"https://github.com/shinnn/chrome-paths/issues"},"homepage":"https://github.com/shinnn/chrome-paths#readme","_id":"chrome-paths@1.0.1","_nodeVersion":"11.9.0","_npmVersion":"6.7.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"9a5f5e158cc7a6a620ddad56968a9cf226018cb7","size":1901,"noattachment":false,"key":"/chrome-paths/-/chrome-paths-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/chrome-paths/download/chrome-paths-1.0.1.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chrome-paths_1.0.1_1549451503677_0.3206231400399775"},"_hasShrinkwrap":false,"publish_time":1549451503845,"_cnpm_publish_time":1549451503845,"_cnpmcore_publish_time":"2021-12-16T13:21:42.045Z"},"1.0.0":{"name":"chrome-paths","version":"1.0.0","description":"Possible paths or binary names of Chrome, Chrome Canary and Chromium in the current platform","repository":{"type":"git","url":"git+https://github.com/shinnn/chrome-paths.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"ISC","scripts":{"pretest":"eslint .","test":"node test.js"},"files":["index.js"],"keywords":["chrome","chromium","canary","darwin","macos","linux","windown","cross-platform","path","paths","locate","location","executable"],"dependencies":{"karma-chrome-launcher":"^2.2.0"},"devDependencies":{"@shinnn/eslint-config-node":"^6.0.0","clear-module":"^3.0.0","eslint":"^5.2.0","execa":"^0.10.0","isexe":"^2.0.0","pretend-platform":"^2.0.0","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"285c3b4b4ee8480c03ca476537e2d0e433b58e15","bugs":{"url":"https://github.com/shinnn/chrome-paths/issues"},"homepage":"https://github.com/shinnn/chrome-paths#readme","_id":"chrome-paths@1.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.7.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"8cc4dc4c7d883c2c8b2e7705fc2d95cf9f796b59","size":2043,"noattachment":false,"key":"/chrome-paths/-/chrome-paths-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chrome-paths/download/chrome-paths-1.0.0.tgz"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chrome-paths_1.0.0_1532910597865_0.048507742753834515"},"_hasShrinkwrap":false,"publish_time":1532910597954,"_cnpm_publish_time":1532910597954,"_cnpmcore_publish_time":"2021-12-16T13:21:42.273Z"},"0.1.0":{"name":"chrome-paths","version":"0.1.0","description":"Possible paths or binary names of Chrome, Chrome Canary and Chromium in the current platform","repository":{"type":"git","url":"git+https://github.com/shinnn/chrome-paths.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"ISC","scripts":{"pretest":"eslint .","test":"node test.js"},"files":["index.js"],"keywords":["chrome","chromium","canary","dartium","path","paths","locate","location","executable"],"dependencies":{"karma-chrome-launcher":"^2.2.0"},"devDependencies":{"@shinnn/eslint-config-node":"^6.0.0","clear-module":"^3.0.0","eslint":"^5.2.0","execa":"^0.10.0","isexe":"^2.0.0","pretend-platform":"^2.0.0","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"faf6a3bc27951f0387722e6d95b00eadb995cd6b","bugs":{"url":"https://github.com/shinnn/chrome-paths/issues"},"homepage":"https://github.com/shinnn/chrome-paths#readme","_id":"chrome-paths@0.1.0","_npmVersion":"6.2.0","_nodeVersion":"10.7.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"c28615fb14ec1b9eb3fcf0922a1f9b130c1d93cb","size":2112,"noattachment":false,"key":"/chrome-paths/-/chrome-paths-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chrome-paths/download/chrome-paths-0.1.0.tgz"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chrome-paths_0.1.0_1532586946876_0.6835772906457858"},"_hasShrinkwrap":false,"publish_time":1532586946943,"_cnpm_publish_time":1532586946943,"_cnpmcore_publish_time":"2021-12-16T13:21:42.475Z"},"0.0.0":{"name":"chrome-paths","version":"0.0.0","description":"Paths of currently installed Chrome, Chrome Canary, Chromium and Dartium","repository":{"type":"git","url":"git+https://github.com/shinnn/chrome-paths.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"ISC","scripts":{"pretest":"eslint .","test":"node test.js"},"files":["index.js"],"keywords":["chrome","chromium","canary","dartium","path","paths","locate","location","executable"],"dependencies":{"karma-chrome-launcher":"^2.2.0"},"devDependencies":{"@shinnn/eslint-config-node":"^6.0.0","eslint":"^5.2.0","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn/node"},"bugs":{"url":"https://github.com/shinnn/chrome-paths/issues"},"homepage":"https://github.com/shinnn/chrome-paths#readme","_id":"chrome-paths@0.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.7.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"55da015d15f3726d0f7ef4e5e548b8ffd50b390e","size":1613,"noattachment":false,"key":"/chrome-paths/-/chrome-paths-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chrome-paths/download/chrome-paths-0.0.0.tgz"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chrome-paths_0.0.0_1532509282421_0.16846564229763583"},"_hasShrinkwrap":false,"publish_time":1532509282520,"_cnpm_publish_time":1532509282520,"_cnpmcore_publish_time":"2021-12-16T13:21:42.685Z"}},"readme":"# chrome-paths\n\n[![npm version](https://img.shields.io/npm/v/chrome-paths.svg)](https://www.npmjs.com/package/chrome-paths)\n[![Build Status](https://travis-ci.com/shinnn/chrome-paths.svg?branch=master)](https://travis-ci.com/shinnn/chrome-paths)\n\nPossible paths or binary names of [Chrome](https://www.google.com/chrome/), [Chrome Canary](https://www.google.com/chrome/canary/) and [Chromium](https://www.chromium.org/Home) in the current platform\n\n```javascript\nconst chromePaths = require('chrome-paths');\n\n// On macOS\n\nchromePaths.chrome; //=> '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'\nchromePaths.chromeCanary; //=> '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary'\nchromePaths.chromium; //=> '/Applications/Chromium.app/Contents/MacOS/Chromium'\n\n// On Linux\n\nchromePaths.chrome; //=> 'google-chrome'\nchromePaths.chromeCanary; //=> null\nchromePaths.chromium; //=> 'chromium'\n\n// On Windows\n\nchromePaths.chrome; //=> 'C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe'\nchromePaths.chromeCanary; //=> 'C:\\\\Program Files (x86)\\\\Google\\\\Chrome SxS\\\\Application\\\\chrome.exe'\nchromePaths.chromium //=> 'C:\\\\Program Files (x86)\\\\Chromium\\\\Application\\\\chrome.exe'\n\n// On Solaris\n\nchromePaths.chrome; //=> null\nchromePaths.chromeCanary; //=> null\nchromePaths.chromium; //=> null\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install chrome-paths\n```\n\n## API\n\n```javascript\nconst chromePaths = require('chrome-paths');\n```\n\n### chromePaths.chrome, chromePaths.chromeCanary, chromePaths.chromium\n\nType: `string` or `null`\n\n```javascript\nconst {execFile} = require('child_process');\nconst {promisify} = require('util');\nconst {chrome, chromeCanary} = require('chrome-paths');\n\n(async () => {\n  (await promisify(execFile)(chrome, ['--version'])).stdout; //=> 'Google Chrome 71.0.3578.98 \\n'\n  (await promisify(execFile)(chromeCanary, ['--version'])).stdout; //=> 'Google Chrome 74.0.3689.0 canary\\n'\n})();\n```\n\nWhether each property is a full path, just a binary name or `null` depends on the current [platform](https://nodejs.org/api/process.html#process_process_platform).\n\n## License\n\n[ISC License](./LICENSE) © 2018 - 2019 Shinnosuke Watanabe\n","_attachments":{},"homepage":"https://github.com/shinnn/chrome-paths#readme","bugs":{"url":"https://github.com/shinnn/chrome-paths/issues"},"license":"ISC"}