@paulohenriquevn/m2js
Version:
Transform TypeScript/JavaScript code into LLM-friendly Markdown summaries + Smart Dead Code Detection + Graph-Deep Diff Analysis. Extract exported functions, classes, and JSDoc comments for better AI context with 60%+ token reduction. Intelligent dead cod
14 lines (13 loc) • 559 B
TypeScript
import { DependencyRelationship, DependencyGraph, GraphOptions } from './types';
/**
* Extract dependencies from a single file's AST
*/
export declare function extractFileDependencies(filePath: string, content: string): DependencyRelationship[];
/**
* Analyze dependencies for an array of files
*/
export declare function analyzeDependencies(files: string[], options?: GraphOptions): DependencyGraph;
/**
* Resolve relative paths to absolute paths within project
*/
export declare function resolveModulePath(fromFile: string, toModule: string): string;