{"name":"find-chrome-bin","version":"2.0.3","keywords":["chrome","chromium","headless","find-chrome","puppeteer-core","browser-fetcher","puppeteer"],"author":{"name":"mbalabash","email":"maksim.balabash@gmail.com"},"license":"MIT","_id":"find-chrome-bin@2.0.3","maintainers":[{"name":"mbalabash","email":"maksim.balabash@gmail.com"}],"homepage":"https://github.com/mbalabash/find-chrome-bin#readme","bugs":{"url":"https://github.com/mbalabash/find-chrome-bin/issues"},"dist":{"shasum":"7b07db311839b46d66245ad18e9019a5a47f1f60","tarball":"http://registry-npm.ywwl.com/find-chrome-bin/download/find-chrome-bin-2.0.3.tgz","fileCount":13,"integrity":"sha512-LfMPOlRfP8pOSk2gIY0KWAXBFO5h6ZF4FlLj8QHw1fAwGpPquUIrB8d35Rswf2yhmCmeqQhLBsbhB8+8U7iuKw==","signatures":[{"sig":"MEUCIFlwWtMRt+753VuBdrch6t9iJBjyqrUbp0jQWClWpTtTAiEA6KxL+WASiSPUkhby65izcICpcFxd3+82j64owTXqXDs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18284,"size":6472,"noattachment":false,"key":"/find-chrome-bin/-/find-chrome-bin-2.0.3.tgz"},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18.0.0"},"exports":{"import":"./index.js"},"gitHead":"133b73ef84c00225039251e5940296fab99e4c73","scripts":{"test":"check-dts && tsm node_modules/uvu/bin.js test/"},"_npmUser":{"name":"mbalabash","email":"maksim.balabash@gmail.com"},"prettier":{"semi":false,"quoteProps":"as-needed","arrowParens":"avoid","singleQuote":true,"trailingComma":"none"},"repository":{"url":"git+https://github.com/mbalabash/find-chrome-bin.git","type":"git"},"_npmVersion":"11.4.2","description":"Finds local Chromium binary to use it with puppeteer-core","directories":{},"_nodeVersion":"24.3.0","dependencies":{"@puppeteer/browsers":"2.10.6"},"_hasShrinkwrap":false,"devDependencies":{"tsm":"2.3.0","uvu":"0.5.6","nanospy":"1.0.0","check-dts":"0.9.0","typescript":"5.8.3","puppeteer-core":"24.15.0"},"_npmOperationalInternal":{"tmp":"tmp/find-chrome-bin_2.0.3_1753557222202_0.9386960022387913","host":"s3://npm-registry-packages-npm-production"},"readme":"# Finds local Chromium to use it with puppeteer-core\n\n- **Cross-platform.** Works on win, mac and linux.\n\n- **Small.** Only 2.4 kB.\n\n## Usage\n\nBy default, it tries to find Chromium v85+ binary with you can then use for launching puppeteer-core for your needs.\n\nRespects `CHROMIUM_EXECUTABLE_PATH` and `PUPPETEER_EXECUTABLE_PATH` environment variables for CI purposes.\n\n```js\nimport { findChrome } from 'find-chrome-bin'\nconst chromeInfo = await findChrome()\nconsole.log(chromeInfo)\n// { browser: \"Google Chrome 96.0.4664.45\", executablePath: \"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\" }\n```\n\n### Specifying `min` and/or `max` Chromium versions\n\nYou can configure a suitable version using `min` and `max` options.\n\n```js\nimport { findChrome } from 'find-chrome-bin'\nconst chromeInfo = await findChrome({ min: 95, max: 97 })\nconsole.log(chromeInfo)\n// { browser: \"Google Chrome 96.0.4664.45\", executablePath: \"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\" }\n```\n\n### With fallback to download suitable Chromium revision\n\nIt can also download suitable Chromium revision as fallback (you have to provide puppeteer-core entity and Chromium revision to `download` option).\n\n```js\nimport { join } from 'path'\nimport puppeteer from 'puppeteer-core'\nimport { PUPPETEER_REVISIONS } from 'puppeteer-core/lib/cjs/puppeteer/revisions.js'\nimport { findChrome } from 'find-chrome-bin'\n\nlet chromeInfo = await findChrome({\n  max: 95,\n  download: {\n    puppeteer,\n    path: join('.', 'chrome'),\n    revision: PUPPETEER_REVISIONS.chromium\n  }\n})\nconsole.log(chromeInfo)\n// { browser: \"Chromium 94.0.4606.0\", executablePath: \"/Users/mbalabash/Projects/opensource/find-chrome-bin/example/chrome/mac-911515/chrome-mac/Chromium.app/Contents/MacOS/Chromium\" }\n```\n\n## Install\n\n```js\nnpm i find-chrome-bin\n```\n\nor\n\n```js\nyarn add find-chrome-bin\n```\n\n## License\n\nMIT\n","publish_time":1753557222394,"_cnpm_publish_time":1753557222394,"dist-tags":{"latest":"2.0.4"}}