UNPKG

what-is-my-tech-stack

Version:

Analyze project dependencies and generate a human-readable tech stack description

25 lines (24 loc) 754 B
interface PackageJson { dependencies?: Record<string, string>; devDependencies?: Record<string, string>; [key: string]: unknown; } export declare class FileReader { /** * Checks if a file exists at the given path */ static fileExists(filePath: string): boolean; /** * Reads and parses a package.json file */ static readPackageJson(filePath: string): Promise<PackageJson>; /** * Reads and parses a requirements.txt file */ static readRequirementsTxt(filePath: string): Promise<string[]>; /** * Detects the type of project based on the files present in the directory */ static detectProjectType(directoryPath: string): 'node' | 'python' | 'both' | 'unknown'; } export {};