Auto-detection of frontend frameworks, UI libraries, and i18n solutions. Analyzes package.json dependencies and root files to identify project stack.

Methods

(inner) detectProject(cwdopt) → {DetectionResult}

Detects framework, libraries, and i18n setup from package.json

Parameters:
NameTypeAttributesDefaultDescription
cwdstring<optional>
process.cwd()
Returns:
Type: 
DetectionResult
Example
const result = detectProject('/path/to/project');
// { framework: { id: 'angular', label: 'Angular', version: '17.0.0' }, ... }