code-tracker v0.2.7
CodeTracker
CodeTracker is a TypeScript library that helps developers track, manage, and report lines of code across different files in a project. It offers utilities to track individual files, update file statistics, and retrieve code metrics.
Features
- ๐งพ Track Individual Files: Easily add and manage files and their lines of code.
- ๐ Update & Remove Files: Convenient methods to update or remove tracked files.
- ๐ Retrieve Code Metrics: Get total lines of code, file details, average lines per file, etc.
- โจ Utility Functions: Batch operations, filtering, reporting, and more.
- ๐ช Type Safety with TypeScript: Written in TypeScript for enhanced development experience.
Installation
npm install code-tracker
Usage
Here's a simple example of how to use CodeTracker:
import { trackCodeUsage, getCodeMetrics } from 'code-tracker';
// Track a file
trackCodeUsage('example.ts');
// Get code metrics
const metrics = getCodeMetrics();
console.log(metrics.totalLinesOfCode); // Outputs: 200
See the API Documentation for more detailed information on each method. Coming soon!
Contributing
We welcome contributions! Please see our CONTRIBUTING.md file for details on how to get involved.
Versioning & Backward Compatibility
CodeTracker follows Semantic Versioning (SemVer) and strives to maintain backward compatibility. See our versioning policy for more information.
Support & Community
Need help or have questions? Join our community forum or open an issue on GitHub.
License
CodeTracker is licensed under the MIT License - see the LICENSE.md file for details.