UNPKG

@zubenelakrab/gitstats

Version:

Powerful Git repository analyzer with comprehensive statistics and insights

33 lines 1.05 kB
// GitStats - Git Repository Analyzer // Main entry point for programmatic usage export * from './types/index.js'; export * from './core/index.js'; export * from './parsers/index.js'; export * from './analyzers/index.js'; export * from './outputs/index.js'; export * from './utils/index.js'; import { analyzeRepository } from './core/analyzer.js'; import { createRenderer } from './outputs/index.js'; /** * Analyze a repository and render output */ export async function gitstats(repoPath, options = {}) { const config = { repoPath, ...options.config, }; const outputConfig = { format: 'cli', ...options.output, }; const report = await analyzeRepository(config, (progress) => { if (options.onProgress) { options.onProgress(progress.phase); } }); const renderer = createRenderer(outputConfig.format); const rendered = await renderer.render(report, outputConfig); return { report, rendered }; } export default gitstats; //# sourceMappingURL=index.js.map