get_imports
Analyze and extract all import statements in JavaScript/TypeScript projects for dependency audits, bundle optimization, security checks, refactoring, and license compliance.
Instructions
Get all import statements with detailed module and specifier information. Essential for dependency analysis.
Examples: • Dependency audit: get_imports() to see all external dependencies • Bundle analysis: get_imports() to identify heavy imports • Security audit: get_imports() to check for suspicious packages • TypeScript analysis: get_imports({includeTypeImports: false}) to focus on runtime imports • Refactoring prep: get_imports() to understand module structure before changes • License compliance: get_imports() to generate dependency list
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeTypeImports | No | Include TypeScript type-only imports (default: true). Set false for runtime dependency analysis. |