{"id":15479740,"url":"https://github.com/gr2m/phantomjs-console","last_synced_at":"2025-07-15T07:38:04.590Z","repository":{"id":4010467,"uuid":"5109024","full_name":"gr2m/phantomjs-console","owner":"gr2m","description":"Control a headless browser console right from your terminal","archived":false,"fork":false,"pushed_at":"2020-10-15T00:03:51.000Z","size":3005,"stargazers_count":26,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-08T05:19:19.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gr2m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-19T11:31:10.000Z","updated_at":"2024-03-21T18:30:35.000Z","dependencies_parsed_at":"2022-09-10T01:31:33.630Z","dependency_job_id":null,"html_url":"https://github.com/gr2m/phantomjs-console","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gr2m/phantomjs-console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fphantomjs-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fphantomjs-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fphantomjs-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fphantomjs-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gr2m","download_url":"https://codeload.github.com/gr2m/phantomjs-console/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fphantomjs-console/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264211146,"owners_count":23573439,"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":[],"created_at":"2024-10-02T04:25:33.499Z","updated_at":"2025-07-15T07:38:04.544Z","avatar_url":"https://github.com/gr2m.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"PhantomJS Console\n===================\n\nControl a headless browser console right from your terminal\n\n[![Phantom Console Screencast](https://dl.dropbox.com/u/732913/phantom-console-screencast.png)](http://cloud.github.com/downloads/gr2m/phantomjs-console/phantom-console-screencast.mov)\n\nDependencies\n--------------\n\n[PhantomJS](https://github.com/ariya/phantomjs), the headless browser\n\ngot [brew](https://github.com/mxcl/homebrew)? lucky you:\n\n```\n$ brew update \u0026\u0026 brew install phantomjs\n```\n\nother systems: [it's simple, too](http://phantomjs.org/download.html)\n\n\n1, 2 ... done\n---------------\n\n```\n$ cake -l http://google.com console\n\nPut your commands in the following file:\n$EDITOR .command.js\n\nExit with ^ + C\n\n \u003e console.log(location)\nhttp://www.google.de/\n```\n\n\nUsage\n-------\n\n```\n# open command file\n$ $EDITOR .command.js \n\n# start console\n$ phantomjs phantomjs_console.coffee http://google.com\n```\n\nYou can also use [cake](http://jashkenas.github.com/coffee-script/documentation/docs/cake.html) to open the command file and to start the console. This will let you run coffeescript commands.\n\n```\n$ cake -l http://google.com console\n```\n\nEvery time you hit save in your editor, the command will be executed within the scope of the passed location (a url or a local path)\n\n\n\nHow does it work?\n-------------------\n\nPhantomJS executes `phantomjs_console.coffee`, wich is continuously watching for changes of the `.command.js` file. When ever a change appears, it loads and deletes its contents and executes it as command within the scope of the passed location.\n\nThat's it. Feedback most welcome","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fphantomjs-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgr2m%2Fphantomjs-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fphantomjs-console/lists"}