{"id":13553154,"url":"https://github.com/adrianmg/github-pewpew","last_synced_at":"2025-04-05T15:10:14.114Z","repository":{"id":42479009,"uuid":"393556751","full_name":"adrianmg/github-pewpew","owner":"adrianmg","description":"🔫 Pew pew needless GitHub repos from your CLI!","archived":false,"fork":false,"pushed_at":"2023-08-28T17:34:25.000Z","size":9492,"stargazers_count":300,"open_issues_count":6,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T13:48:35.756Z","etag":null,"topics":["cli","delete","github","javascript","nodejs","package","pewpew","repositories","terminal","utility"],"latest_commit_sha":null,"homepage":"https://adrianmato.com/pewpew","language":"JavaScript","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/adrianmg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-08-07T02:29:08.000Z","updated_at":"2025-03-12T02:59:50.000Z","dependencies_parsed_at":"2024-01-14T14:31:29.518Z","dependency_job_id":"1809df29-6c95-42c0-b1db-e17f1f905a8e","html_url":"https://github.com/adrianmg/github-pewpew","commit_stats":{"total_commits":196,"total_committers":6,"mean_commits":"32.666666666666664","dds":0.07653061224489799,"last_synced_commit":"63af4d8b07304c276a7cdf453f3e8635ac4ebc92"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmg%2Fgithub-pewpew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmg%2Fgithub-pewpew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmg%2Fgithub-pewpew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmg%2Fgithub-pewpew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianmg","download_url":"https://codeload.github.com/adrianmg/github-pewpew/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353749,"owners_count":20925329,"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","delete","github","javascript","nodejs","package","pewpew","repositories","terminal","utility"],"created_at":"2024-08-01T12:02:18.585Z","updated_at":"2025-04-05T15:10:14.084Z","avatar_url":"https://github.com/adrianmg.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n\t\u003ch1 align=\"center\"\u003e\n\t\t\u003cimg src=\"./res/logo.png\" alt=\"Logo\" width=\"152\"\u003e\n\t\t\u003cbr\u003e\n\t\tgithub-pewpew\n\t\u003c/h1\u003e\n\t\u003cp align=\"center\"\u003ePew pew needless GitHub repos!\u003cbr\u003eClean up your unused repos via the CLI within seconds.\u003c/p\u003e\n\t\u003cp align=\"center\"\u003e\n\t\t\u003ca href=\"https://badge.fury.io/js/github-pewpew\"\u003e\u003cimg src=\"https://badge.fury.io/js/github-pewpew.svg\" alt=\"npm version\" height=\"18\"\u003e\u003c/a\u003e\n\t\t\u003ca href=\"https://justforfunnoreally.dev/\"\u003e\u003cimg src=\"https://img.shields.io/badge/justforfunnoreally-dev-9ff\" alt=\"Just for fun. No, really.\" height=\"18\"\u003e\u003c/a\u003e\n\t\u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cbr\u003e\n\t\u003cimg src=\"./res/preview.gif\" alt=\"Preview of the tool\" width=\"600\"\u003e\n\t\u003cbr\u003e\n\u003c/p\u003e\n\n## Installation and Usage\n\nTo install the latest version of github-pewpew CLI, run this command:\n\n```\nnpm i -g github-pewpew\n```\n\nTo quickly start using it, run the following command:\n\n```\nghpew\n```\n\nAvailable commands:\n\n```\nghpew repos\nghpew codespaces\nghpew help\n```\n\n## Why?\n\nHave you ever had too much fun with the GitHub API and ended up creating too many dummy repos? Me too 😅!\n\nI made this little CLI tool to clean up repositories quickly. I'm planning to add some flags and regexp to delete in bulk in the future. [Let me know](http://twitter.com/adrianmg) if that sounds interesting to you.\n\nDo you want to know more? [Visit the official website](https://adrianmato.com/pewpew).\n\n## Development\n\nThe important parts of the project are the following:\n\n```\n├── .github                GitHub Actions workflows and repo settings\n├── src\n│   ├── commands\n│   │   ├── codespaces.js  Contains the command to delete codespaces\n│   │   └── repos.js       Contains the command to delete repos\n│   ├── config.js          Contains the configuration manager\n│   ├── github.js          Business logic: authentication and API calls\n│   ├── ui.js              CLI interactions\n│   └── utils.js           Lightweight utility functions\n├── test\n│   └── test.js            Test coverage with Mocha\n├── .prettierrc            Code formatting configuration\n├── index.js               The main thread of execution\n├── README.md              you're looking at it\n```\n\nTo **set up your environment** to develop this tool, run:\n\n- `npm install`\n- `node index`\n\nYou can also run `node index DEV=true CLIENT_ID=\u003cYOUR_TESTING_CLIENT_ID\u003e` if you want to use your own client id for development and testing purposes.\n\nAll the tests are written with [mocha](https://mochajs.org/) and can be run with `npm test`.\n\n## TODO\n\n- TODO: `--force` flag to avoid confirmation\n- TODO: `--regex` flag to delete repos matching a regex\n- TODO: `--list` flag to delete repos from a comma-separated list\n- TODO: `--archive` and `-a` flag to [archive repositories](https://github.com/adrianmg/github-pewpew/issues/34) instead of deleting\n- TODO: `ghpew gists` command to [delete gists](https://github.com/adrianmg/github-pewpew/issues/36)\n\n## Questions? Ideas? Bugs?\n\nIf you run into any issues or you'd like to share your thoughts, feel free to [open an issue](https://github.com/adrianmg/github-pewpew/issues) in this repository or hit me up on [Twitter](https://twitter.com/adrianmg).\n\n## Contributions\n\nLogo designed by [Rapha Lopes](https://twitter.com/raphaellopesph). Thanks to [@sergiou87](https://github.com/sergiou87), [@zschiller](https://github.com/zschiller), [@mamuso](https://github.com/mamuso), [@anishde12020](https://github.com/anishde12020), and [@jdvr](https://github.com/jdvr) for contributing with their feedback and ideas 🙇‍♂️.\n\n## License\n\nThe tool is available as open-source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianmg%2Fgithub-pewpew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianmg%2Fgithub-pewpew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianmg%2Fgithub-pewpew/lists"}