JSPM

code-graph-generator

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 41
  • Score
    100M100P100Q61321F
  • License MIT

Generate Json Object of code that can be used to generate code-graphs for JavaScript/TypeScript/Range projects

Package Exports

  • code-graph-generator
  • code-graph-generator/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (code-graph-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Code Graph Generator

Generate detailed code structure graphs for JavaScript/TypeScript projects.

Features

  • Analyze JS, TS, JSX, and TSX files
  • Detect React components and their relationships
  • Track function calls and dependencies
  • Identify module imports/exports
  • Analyze React hooks usage
  • Memory-efficient for large codebases

Installation

npm install code-graph-generator

## Uses

import { createCodeGraph } from 'code-graph-generator';

const graph = await createCodeGraph({
  projectName: 'My Project',
  rootDir: './src',
  includeDeclarations: false,
  concurrency: 10
});

console.log(JSON.stringify(graph, null, 2));