0.1.13 • Published 10 months ago
@quick-gen/knowledge v0.1.13
@quick-gen/knowledge
A powerful JavaScript/TypeScript code analysis tool that helps you understand your codebase by extracting and organizing information about symbols, dependencies, and relationships in your code.
🌟 Features
- 🔍 Comprehensive Analysis:
- Analyzes JavaScript and TypeScript files
- Supports JSX and TSX formats
- Extracts detailed code structure information
- 📊 Rich Information Extraction:
- Classes, methods, and properties
- Functions and variables
- Import/Export relationships
- Symbol references and dependencies
- 📦 Structured Output:
- Generates organized knowledge files
- Creates separate JSON files for different aspects
- Easy to integrate with other tools
- 🛠️ Developer Friendly:
- Simple CLI interface
- Programmatic API available
- Configurable ignore patterns
📦 Installation
# Using npm
npm install @quick-gen/knowledge --save-dev
# Using yarn
yarn add -D @quick-gen/knowledge
# Using pnpm
pnpm add -D @quick-gen/knowledge🚀 Usage
Command Line Interface
# Using npx
npx quick-gen knowledge
# Analyze specific directory
npx quick-gen knowledge src/Integration with package.json
Add a script to your package.json:
{
"scripts": {
"analyze": "quick-gen-knowledge"
}
}📊 Output Structure
The tool generates three main JSON files in the .knowledge directory:
fileSymbols.json: Contains information about symbols defined in each filefileImports.json: Maps import/export relationships between filessymbolReferences.json: Tracks symbol usage and references across the codebase
🛠️ Requirements
- Node.js >= 14
- JavaScript/TypeScript project
📦 Related Packages
- @quick-gen/cli - Core CLI tool
- @quick-gen/react - React documentation generator