🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

code-tracker

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-tracker

Source
npmnpm
Version
0.2.2
Version published
Weekly downloads
22
2100%
Maintainers
1
Weekly downloads
 
Created
Source

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 codeTracker, { trackCodeUsage, getCodeMetrics } from 'code-tracker';

// Track a file
trackCodeUsage('example.ts', 200);

// 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.

FAQs

Package last updated on 10 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts