A command-line tool that monitors package manager operations and dependency file changes across your development environment.
- Real-time monitoring of package manager commands (
npm,pip,go get) - File watching for common dependency files:
package.json(Node.js)requirements.txt(Python)- Support for lock files (
package-lock.json,yarn.lock,pnpm-lock.yaml)
- Automatic shell integration for
zshandbash - Detection of new package installations and updates
- Cross-platform support
# Clone the repository
git clone https://github.com/yourusername/doc-cli
cd doc-cli
# Build the project
go build -o doc-cli cmd/main.goSimply run the CLI tool:
./doc-cliThe tool will automatically:
- Install necessary shell hooks in your
.zshrcor.bashrc - Start monitoring package manager commands
- Watch for changes in dependency files in your current directory and subdirectories
- Shell hooks capture package manager commands in real-time
- File watchers monitor changes to dependency files
- The tool detects both new package installations and version updates
- All events are logged for tracking dependency changes
- Go 1.x or higher
zshorbashshell- File system permissions for creating FIFOs in
/tmp
Contributions are welcome! Please feel free to submit a Pull Request.