{"id":15497489,"url":"https://github.com/heapwolf/node-chrome","last_synced_at":"2025-05-12T14:56:01.044Z","repository":{"id":6767568,"uuid":"8014312","full_name":"heapwolf/node-chrome","owner":"heapwolf","description":"deprecated","archived":false,"fork":false,"pushed_at":"2016-12-19T08:37:32.000Z","size":27,"stargazers_count":280,"open_issues_count":0,"forks_count":27,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-11T22:38:28.485Z","etag":null,"topics":["chrome","chromium","commandline","electron","testing"],"latest_commit_sha":null,"homepage":"","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/heapwolf.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":"2013-02-04T19:19:22.000Z","updated_at":"2024-09-08T22:21:30.000Z","dependencies_parsed_at":"2022-08-26T04:20:46.289Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/node-chrome","commit_stats":null,"previous_names":["0x00a/node-chrome"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fnode-chrome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fnode-chrome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fnode-chrome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fnode-chrome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/node-chrome/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253759816,"owners_count":21959827,"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","chromium","commandline","electron","testing"],"created_at":"2024-10-02T08:38:36.133Z","updated_at":"2025-05-12T14:56:01.016Z","avatar_url":"https://github.com/heapwolf.png","language":"JavaScript","readme":"# SYNOPSIS\nRun chrome headlessly as a module or as a command from the commandline. This\nproject is similar to [electron-stream](https://github.com/juliangruber/electron-stream),\nbut it's simpler, no streams, no servers, etc.\n\n# USAGE\n\n## FROM THE COMMANDLINE\nThe `html` file is optional (an empty one will be used by default).\n\n```bash\nnode-chrome index.js [index.html]\n```\n\n## AS A MODULE\nProvides an event emitter with `stdout`, `stderr` and `exit`.\n\n```js\nconst Chrome = require('node-chrome')\nconst path = require('path')\n\nconst chrome = Chrome('\u003ch1\u003eHello World\u003c/h1\u003e')\n\n//\n// or pass in file names...\n//\n// const js = path.join(__dirname, 'index.js')\n// const html = path.join(__dirname, 'index.html')\n// const chrome = Chrome({ js, html })\n\nchrome.on('stdout', (data) =\u003e console.log(data))\nchrome.on('exit', (code, sig) =\u003e process.exit(code, sig))\n```\n\nKill an isntance with `kill`.\n\n```js\nchrome.kill(/* sig */)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fnode-chrome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Fnode-chrome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fnode-chrome/lists"}