0.1.13 • Published 10 months ago

@quick-gen/knowledge v0.1.13

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@quick-gen/knowledge

npm version License: MIT

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 file
  • fileImports.json: Maps import/export relationships between files
  • symbolReferences.json: Tracks symbol usage and references across the codebase

🛠️ Requirements

  • Node.js >= 14
  • JavaScript/TypeScript project

📦 Related Packages

🔗 Links

0.1.13

10 months ago

0.1.12

10 months ago

0.1.11

10 months ago

0.1.10

10 months ago