{"id":15080655,"url":"https://github.com/rmbl/grunt-chrome-headless","last_synced_at":"2026-01-02T08:53:06.364Z","repository":{"id":57254774,"uuid":"110898536","full_name":"rmbl/grunt-chrome-headless","owner":"rmbl","description":"Run Google Chrome headless with grunt","archived":false,"fork":false,"pushed_at":"2017-11-16T18:16:22.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T05:07:02.908Z","etag":null,"topics":["chrome-headless","google-chrome","grunt","grunt-plugins"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmbl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-15T23:26:12.000Z","updated_at":"2017-11-15T23:26:37.000Z","dependencies_parsed_at":"2022-08-31T09:00:27.768Z","dependency_job_id":null,"html_url":"https://github.com/rmbl/grunt-chrome-headless","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmbl%2Fgrunt-chrome-headless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmbl%2Fgrunt-chrome-headless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmbl%2Fgrunt-chrome-headless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmbl%2Fgrunt-chrome-headless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmbl","download_url":"https://codeload.github.com/rmbl/grunt-chrome-headless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910820,"owners_count":20367545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome-headless","google-chrome","grunt","grunt-plugins"],"created_at":"2024-09-25T05:04:54.796Z","updated_at":"2026-01-02T08:53:06.315Z","avatar_url":"https://github.com/rmbl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-chrome-headless\n\n\u003e Start a Google Chrome headless instance.\n\n## Getting Started\nThis plugin requires Grunt `1.0.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-chrome-headless --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-chrome-headless');\n```\n\n## The \"chrome_headless\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `chrome_headless` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  chrome_headless: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.port\nType: `Int`\nDefault value: `9222`\n\nThe remote debugging port which Google Chrome should use.\n\n#### options.bin\nType: `String`\nDefault value: ``\n\nThe full path under which Google Chrome can be found. By default `google-chrome`, `google-chrome-stable` and `chromium` are checked.\n\n#### options.args\nType: `Array`\nDefault value: `[]`\n\nAdditional arguments to the command line.\n\n### Usage Examples\n\n#### Default Options\n\n```js\ngrunt.initConfig({\n  chrome_headless: {\n    options: {\n      port: 9222,\n      bin: '/usr/bin/google-chrome'\n    },\n  },\n});\n```\n\n#### Multiple instances\nIf you want to run multiple instances, use more than one target.\n\n```js\ngrunt.initConfig({\n  chrome_headless: {\n    cucumber: {\n      options: {\n        port: 9222\n      }\n    },\n    mocha: {\n      options: {\n        port: 9223\n      }\n    }\n  },\n});\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmbl%2Fgrunt-chrome-headless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmbl%2Fgrunt-chrome-headless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmbl%2Fgrunt-chrome-headless/lists"}