{"_id":"@alcozy/git-janitor","name":"@alcozy/git-janitor","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alcozy/git-janitor","version":"1.0.0","description":"An interactive CLI tool to clean up your local and remote Git branches.","scripts":{"build":"tsc","start":"npm run build && node ./dist/bin/cli.js","typecheck":"tsc --noEmit","lint":"eslint src bin"},"keywords":["git","cli","tool","branch","clean","janitor"],"author":{"name":"Alex L. Cosentino"},"license":"ISC","type":"module","bin":{"git-janitor":"dist/bin/cli.js"},"dependencies":{"@clack/prompts":"^1.1.0","figlet":"^1.11.0","picocolors":"^1.1.1"},"devDependencies":{"@eslint/js":"^10.0.1","@types/figlet":"^1.7.0","@types/node":"^25.5.0","eslint":"^10.0.3","globals":"^17.4.0","typescript":"^5.9.3","typescript-eslint":"^8.57.1"},"gitHead":"5876bb24b1b8faa25d5d9309078f787188449a59","_id":"@alcozy/git-janitor@1.0.0","_nodeVersion":"22.16.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-hvqd5Jmgk9I4XYTthkplXCm6cF+wg6Z5ALzCa7gfD/549nzbe6CqODpgMqMVZdQqcPKTedUSEf1BbqvOkyEGWg==","shasum":"aa8644895a07fc088bcf0be6114b99db307e0bb8","tarball":"https://registry.npmjs.org/@alcozy/git-janitor/-/git-janitor-1.0.0.tgz","fileCount":10,"unpackedSize":28220,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCCs69Mtu6hdljLraA3UWbjkmOO5bi83uzMdw1dqFsqfgIgRcGN2YGv2AY2Lpk+yvcJcwItR3mFlb2ob1exeH43Gcw="}]},"_npmUser":{"name":"alcozy","email":"aluciencozy22@gmail.com"},"directories":{},"maintainers":[{"name":"alcozy","email":"aluciencozy22@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/git-janitor_1.0.0_1773695223976_0.1549856890503276"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-16T21:07:03.893Z","1.0.0":"2026-03-16T21:07:04.145Z","modified":"2026-03-16T21:07:04.364Z"},"maintainers":[{"name":"alcozy","email":"aluciencozy22@gmail.com"}],"description":"An interactive CLI tool to clean up your local and remote Git branches.","keywords":["git","cli","tool","branch","clean","janitor"],"author":{"name":"Alex L. Cosentino"},"license":"ISC","readme":"# Git Janitor\r\nA powerful, interactive command-line interface (CLI) tool authored by Alex L. Cosentino to easily clean up and manage Git branches.\r\n\r\nStop typing out endless `git branch -d` commands. Git Janitor provides a beautiful, keyboard-navigated menu to safely prune merged branches, force-delete stale work, and seamlessly check out branches, keeping your local and remote repositories spotless.\r\n\r\n## Features\r\n- **Auto-Prune:** Automatically detects and deletes all local branches that have been successfully merged into your primary branch (`main`/`master`).\r\n- **Soft & Hard Deletes:** Safely delete branches via an interactive multi-select menu, with built-in safeguards to prevent accidental deletion of unmerged work unless explicitly forced.\r\n- **Remote Syncing:** Optionally sync your deletions to the remote repository (`origin`) with a single keystroke.\r\n- **Interactive Checkout:** View a visual graph of your recent commit history and easily switch between active branches without leaving the CLI.\r\n- **Safety First:** Built-in protections prevent you from deleting your current active branch or your primary repository branch.\r\n\r\n## Installation\r\n### Global Installation\r\nYou can install Git Janitor globally on your machine using npm:\r\n\r\n```\r\nnpm install -g @alcozy/git-janitor\r\n```\r\n\r\n### Run without installing (npx)\r\nIf you prefer not to install it globally, you can run it instantly using npx:\r\n\r\n```\r\nnpx @alcozy/git-janitor\r\n```\r\n\r\n## Usage\r\nNavigate to any Git repository on your machine and simply run:\r\n\r\n```\r\ngit-janitor\r\n```\r\n\r\nUse your arrow keys to navigate the menu and Spacebar to select multiple branches for deletion.\r\n\r\n## Tech Stack\r\n- TypeScript & Node.js Child Processes\r\n- @clack/prompts for the interactive terminal UI\r\n- Figlet & Picocolors for terminal typography and styling\r\n\r\n## Local Development / Contributing\r\nIf you want to modify the source code or build the project locally:\r\n1. Clone the repository:\r\n```\r\ngit clone https://github.com/aluciencozy/git-janitor.git\r\ncd git-janitor\r\n``` \r\n2. Install dependencies:\r\n```\r\nnpm install\r\n``` \r\n3. Compile the TypeScript:\r\n```\r\nnpm run build\r\n``` \r\n4. Link the package globally:\r\n```\r\nnpm link\r\n```","readmeFilename":"README.md","_rev":"1-a41429da56800d8206473f532d8d976a"}