UNPKG

@mutasim77/loc-counter

Version:

A powerful lines of code counter with detailed statistics

24 lines (23 loc) 604 B
export interface LineStats { total: number; code: number; comment: number; blank: number; } export interface FileStats extends LineStats { path: string; language: string; size: number; } export interface LanguageStats extends LineStats { language: string; files: number; percentage: number; } export interface ProjectStats { files: FileStats[]; languages: LanguageStats[]; total: LineStats; } export declare function countLines(filePath: string): Promise<FileStats | null>; export declare function aggregateStats(fileStats: FileStats[]): ProjectStats;