{"name":"find-chrome-bin","version":"2.0.4","description":"Finds local Chromium binary to use it with puppeteer-core","main":"index.js","type":"module","types":"./index.d.ts","exports":{"import":"./index.js"},"engines":{"node":">=18.0.0"},"scripts":{"test":"tsm node_modules/uvu/bin.js test find-chrome-bin.test.js"},"dependencies":{"@puppeteer/browsers":"2.10.10"},"devDependencies":{"nanospy":"1.0.0","puppeteer-core":"24.22.0","tsm":"2.3.0","typescript":"5.9.2","uvu":"0.5.6"},"prettier":{"arrowParens":"avoid","quoteProps":"as-needed","semi":false,"singleQuote":true,"trailingComma":"none"},"repository":{"type":"git","url":"git+https://github.com/mbalabash/find-chrome-bin.git"},"bugs":{"url":"https://github.com/mbalabash/find-chrome-bin/issues"},"homepage":"https://github.com/mbalabash/find-chrome-bin#readme","keywords":["chrome","chromium","headless","find-chrome","puppeteer-core","browser-fetcher","puppeteer"],"license":"MIT","author":{"name":"mbalabash","email":"maksim.balabash@gmail.com"},"_id":"find-chrome-bin@2.0.4","gitHead":"e99db51bf14ddc69ebfa3998bb230afd961ad828","_nodeVersion":"24.3.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-iKiqIb7FsA0hwnq0vvDay4RsmHUFLvWVquTb59XVlxfHS68XaWZfEjriF2vTZ3k/plicyKZxMJLqxKt10kSOtQ==","shasum":"2462c057edad2d544ac3030e85c9364b09a9df81","tarball":"http://registry-npm.ywwl.com/find-chrome-bin/download/find-chrome-bin-2.0.4.tgz","fileCount":13,"unpackedSize":18037,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEjYe2HGPhA+Rc7pERSIAVYaiyvHMJ+BF1G8vjPRyAbbAiEAnmj08qaUSfK/1BiJR73ROcKkVVwd+su+urOdWkteniI="}],"size":6420,"noattachment":false,"key":"/find-chrome-bin/-/find-chrome-bin-2.0.4.tgz"},"_npmUser":{"name":"mbalabash","email":"maksim.balabash@gmail.com"},"directories":{},"maintainers":[{"name":"mbalabash","email":"maksim.balabash@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/find-chrome-bin_2.0.4_1758147020697_0.9362901979370588"},"_hasShrinkwrap":false,"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":1758147020870,"_cnpm_publish_time":1758147020870,"dist-tags":{"latest":"2.0.4"}}