{"name":"@puppeteer/browsers","version":"2.7.0","keywords":["puppeteer","browsers"],"author":{"name":"The Chromium Authors"},"license":"Apache-2.0","_id":"@puppeteer/browsers@2.7.0","homepage":"https://github.com/puppeteer/puppeteer/tree/main#readme","bugs":{"url":"https://github.com/puppeteer/puppeteer/issues"},"bin":{"browsers":"lib/cjs/main-cli.js"},"dist":{"shasum":"dad70b30458f4e0855b2f402055f408823cc67c5","tarball":"http://registry-npm.ywwl.com/@puppeteer/browsers/download/@puppeteer/browsers-2.7.0.tgz","fileCount":158,"integrity":"sha512-bO61XnTuopsz9kvtfqhVbH6LTM1koxK0IlBR+yuVrM2LB7mk8+5o1w18l5zqd5cs8xlf+ntgambqRqGifMDjog==","signatures":[{"sig":"MEUCIQDHkj10uoOfi6ww3aDhVbWK6n6ORAuU7TiJ8k8sCWXCvAIgemIU8I8FwE01BVirel3aWWP9U2/MxcF5igMGcIKPvfw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":518479,"size":76193,"noattachment":false,"key":"/@puppeteer/browsers/-/@puppeteer/browsers-2.7.0.tgz"},"main":"./lib/cjs/main.js","type":"commonjs","types":"./lib/cjs/main.d.ts","wireit":{"test":{"files":[".mocharc.cjs"],"command":"node tools/downloadTestBrowsers.mjs && mocha","dependencies":["build:test"]},"build":{"clean":"if-file-deleted","files":["src/**/*.ts","tsconfig.json"],"output":["lib/**","!lib/esm/package.json"],"command":"tsc -b && node --experimental-strip-types ../../tools/chmod.ts 755 lib/cjs/main-cli.js lib/esm/main-cli.js","dependencies":["generate:package-json"]},"build:docs":{"files":["api-extractor.docs.json","lib/esm/main.d.ts","tsconfig.json"],"command":"api-extractor run --local --config \"./api-extractor.docs.json\"","dependencies":["build"]},"build:test":{"files":["test/**/*.ts","test/src/tsconfig.json"],"output":["test/build/**"],"command":"tsc -b test/src/tsconfig.json","dependencies":["build","../testserver:build"]},"generate:package-json":{"files":["../../tools/generate_module_package_json.ts"],"output":["lib/esm/package.json"],"command":"node --experimental-strip-types ../../tools/generate_module_package_json.ts lib/esm/package.json"}},"engines":{"node":">=18"},"exports":{"import":"./lib/esm/main.js","require":"./lib/cjs/main.js"},"gitHead":"0b006175eea0c58957715b2c1cd7e56aec5170f1","scripts":{"test":"wireit","build":"wireit","clean":"../../tools/clean.mjs","build:docs":"wireit","build:test":"wireit"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/puppeteer/puppeteer.git#main","type":"git"},"_npmVersion":"10.9.0","description":"Download and launch browsers","directories":{},"_nodeVersion":"22.12.0","dependencies":{"debug":"^4.4.0","yargs":"^17.7.2","semver":"^7.6.3","tar-fs":"^3.0.6","progress":"^2.0.3","extract-zip":"^2.0.1","proxy-agent":"^6.5.0","unbzip2-stream":"^1.4.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/debug":"4.1.12","@types/yargs":"17.0.33","@types/tar-fs":"2.0.4","@types/progress":"2.0.7","@types/unbzip2-stream":"1.4.3"},"_npmOperationalInternal":{"tmp":"tmp/browsers_2.7.0_1736493562216_0.631438122626587","host":"s3://npm-registry-packages-npm-production"},"readme":"# @puppeteer/browsers\n\nManage and launch browsers/drivers from a CLI or programmatically.\n\n## System requirements\n\n- A compatible Node version (see `engines` in `package.json`).\n- For Firefox downloads:\n  - Linux builds: `xz` and `bzip2` utilities are required to unpack `.tar.gz` and `.tar.bz2` archives.\n  - MacOS builds: `hdiutil` is required to unpack `.dmg` archives.\n\n## CLI\n\nUse `npx` to run the CLI:\n\n```bash\n# This will install and run the @puppeteer/browsers package.\n# If it is already installed in the current directory, the installed\n# version will be used.\nnpx @puppeteer/browsers --help\n```\n\nBuilt-in per-command `help` will provide all documentation you need to use the CLI.\n\n```bash\nnpx @puppeteer/browsers --help # help for all commands\nnpx @puppeteer/browsers install --help # help for the install command\nnpx @puppeteer/browsers launch --help # help for the launch command\nnpx @puppeteer/browsers clear --help # help for the clear command\nnpx @puppeteer/browsers list --help # help for the list command\n```\n\nYou can specify the version of the `@puppeteer/browsers` when using\n`npx`:\n\n```bash\n# Always install and use the latest version from the registry.\nnpx @puppeteer/browsers@latest --help\n# Always use a specifc version.\nnpx @puppeteer/browsers@2.4.1 --help\n# Always install the latest version and automatically confirm the installation.\nnpx --yes @puppeteer/browsers@latest --help\n```\n\nTo clear all installed browsers, use the `clear` command:\n\n```bash\nnpx @puppeteer/browsers clear\n```\n\nTo list all installed browsers, use the `list` command:\n\n```bash\nnpx @puppeteer/browsers list\n```\n\nSome example to give an idea of what the CLI looks like (use the `--help` command for more examples):\n\n```sh\n# Download the latest available Chrome for Testing binary corresponding to the Stable channel.\nnpx @puppeteer/browsers install chrome@stable\n\n# Download a specific Chrome for Testing version.\nnpx @puppeteer/browsers install chrome@116.0.5793.0\n\n# Download the latest Chrome for Testing version for the given milestone.\nnpx @puppeteer/browsers install chrome@117\n\n# Download the latest available ChromeDriver version corresponding to the Canary channel.\nnpx @puppeteer/browsers install chromedriver@canary\n\n# Download a specific ChromeDriver version.\nnpx @puppeteer/browsers install chromedriver@116.0.5793.0\n\n# On Ubuntu/Debian and only for Chrome, install the browser and required system dependencies.\n# If the browser version has already been installed, the command\n# will still attempt to install system dependencies.\n# Requires root privileges.\nnpx puppeteer browsers install chrome --install-deps\n```\n\n## Known limitations\n\n1. Launching the system browsers is only possible for Chrome/Chromium.\n\n## API\n\nThe programmatic API allows installing and launching browsers from your code. See the `test` folder for examples on how to use the `install`, `canInstall`, `launch`, `computeExecutablePath`, `computeSystemExecutablePath` and other methods.\n","publish_time":1736493562396,"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"},{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"_cnpm_publish_time":1736493562396,"dist-tags":{"latest":"3.2.6"}}