Auto-detection of frontend frameworks, UI libraries, and i18n solutions. Analyzes package.json dependencies and root files to identify project stack.
- Source
Methods
(inner) detectProject(cwdopt) → {DetectionResult}
Detects framework, libraries, and i18n setup from package.json
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
cwd | string | <optional> | process.cwd() |
- Source
Returns:
- Type:
- DetectionResult
Example
const result = detectProject('/path/to/project');
// { framework: { id: 'angular', label: 'Angular', version: '17.0.0' }, ... }