smart-commenter
v1.1.4
Published
A CLI tool to generate code comments using OpenAI's GPT-4 model
Downloads
12
Maintainers
Readme
Smart Commenter
Smart Commenter is a CLI tool that automatically generates comments for your code files based on their language. It uses OpenAI to analyze code and produce comments, helping to explain the code, its structure, and its logic. You can then decide whether to overwrite your original file with the newly commented version.
Features
- Supports multiple languages (JavaScript, Python, Java)
- Automatically detects the language based on file extension
- Option to control verbosity of the generated comments (low, medium, high)
- Prompts the user before overwriting the original file
Installation
npm install smart-commenter
usage
npx smart-commenter comment ./test.js --verbosity low
Contributing
We welcome contributions! If you'd like to contribute to smart-commenter
, follow these steps:
- Fork the repository at https://github.com/sgr-0007/smart-commenter.
- Create a new branch (
git checkout -b feature/your-feature
). - Make your changes and commit them (
git commit -am 'Add your feature'
). - Push the branch to your fork (
git push origin feature/your-feature
). - Create a Pull Request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Support
If you encounter any issues or have questions, feel free to open an issue in the GitHub repository or contact us via email.