Thank you for your interest in contributing to snip!
Please read and follow our Code of Conduct to keep our community approachable and respectable.
- Search existing issues — Check if the bug has already been reported
- Use the bug template — Include detailed steps to reproduce
- Include context — OS, Node.js version, and snip version
- Check existing discussions — Maybe someone already proposed it
- Use the feature request template — Describe the problem and solution
- Explain use cases — How would you use this feature?
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Make your changes — Follow the coding standards
- Add tests — If applicable
- Commit with clear messages:
git commit -m 'Add feature: description' - Push and create PR:
git push origin feature/my-feature
# Clone the repository
git clone https://github.com/bharath/snip.git
cd snip
# Install dependencies
npm install
# Run tests
npm test
# Run in development mode
node bin/snip --help- Use 2 spaces for indentation
- Add comments for complex logic
- Keep functions small and focused
- Test your changes before submitting
<type>(<scope>): <description>
[optional body]
[optional footer]
Types: feat, fix, docs, style, refactor, test, chore
Example:
feat(add): Add --tags flag to snip add command
Allows users to add multiple tags when creating a snippet.
Closes #123
By contributing, you agree that your contributions will be licensed under the MIT License.