{"id":22004410,"url":"https://github.com/coolstone-tech/ghr","last_synced_at":"2026-02-26T16:10:43.967Z","repository":{"id":248770363,"uuid":"829640501","full_name":"coolstone-tech/ghr","owner":"coolstone-tech","description":"Run a file from a GitHub repository in your command line","archived":false,"fork":false,"pushed_at":"2024-07-17T17:28:18.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-26T10:51:34.947Z","etag":null,"topics":["cli","github","nodejs"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/node-ghr","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/coolstone-tech.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-16T21:01:08.000Z","updated_at":"2024-07-17T17:28:21.000Z","dependencies_parsed_at":"2025-06-28T14:33:19.310Z","dependency_job_id":null,"html_url":"https://github.com/coolstone-tech/ghr","commit_stats":null,"previous_names":["coolstone-tech/ghr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coolstone-tech/ghr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolstone-tech%2Fghr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolstone-tech%2Fghr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolstone-tech%2Fghr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolstone-tech%2Fghr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coolstone-tech","download_url":"https://codeload.github.com/coolstone-tech/ghr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolstone-tech%2Fghr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262445247,"owners_count":23312304,"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":["cli","github","nodejs"],"created_at":"2024-11-30T00:15:52.615Z","updated_at":"2025-11-09T12:03:07.748Z","avatar_url":"https://github.com/coolstone-tech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghr - GitHub Runner\nRun a file from a GitHub repository in your command line\n\n### Installation\n```bash\nsudo npm install -g node-ghr\n```\n### Usage\n```bash\nghr \u003cuser\u003e/\u003crepo\u003e \u003cbranch?\u003e \u003cfiles?\u003e \u003ctempPath?\u003e\n```\n\nWhere `user` is the GitHub username, `repo` is the repository name, `branch` is the branch name, `files` is the file or files to download (separated by commas), and `tempPath` is the path to download the files to.\n\n## Default Values\n- `user` and `repo` are **required**\n- `branch` defaults to `master`\n- `files` defaults to `index.js`\n- `tempPath` defaults to `~/.ghr`\n\n### Example\n```bash\nghr systemsoftware/dirtable \n```\n```bash\nghr systemsoftware/dirtable master \"index.js, other_file.js\"\n```\n```bash\nghr systemsoftware/dirtable master index.js ~/temp\n```\n```bash\nghr systemsoftware/dirtable master index.js --c --k\n```\n\n## Remove ~/.ghr\n`~/.ghr` is a directory that stores the files downloaded by ghr. To remove it, run:\n```bash\nghr --clean\n```\n\u003e Note: ghr will automatically attempt to remove the directory after running the repository, unless the `--keep` flag is used.\n\n## Optional Flags\nFlags can be used in any order, but must be placed after all other arguments\n- `--c` or `--clear` to clear the console before running the file\n- `--skip-deps` or `--sd` to skip installing dependencies\n- `--keep` or `--k` to keep the directory after running the repository\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolstone-tech%2Fghr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoolstone-tech%2Fghr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolstone-tech%2Fghr/lists"}