Code Monkey home page Code Monkey logo

typescript-call-graph's Introduction

npm

TypeScript Call Graph

This CLI will create an interactive graph of all the functions and their calls in the TypeScript files you provide.

โš ๏ธ This is a work in progress ๐Ÿšง More visualization contributions are welcome.

image

How to use

Install globally:

npm install -g typescript-call-graph

Inside any directory, run:

tcg

It will remind you how to use the CLI: you need to provide specific files, or globs (wildcard paths):

tcg myFile.ts folder/* anotherFolder/**/*

Developing

Clone repository. Edit index.ts and/or extract.ts and run npm start to build changes, npm test to run CLI against files in this repository.

Suggestions or PRs for how to improve this CLI are very welcome ๐Ÿ™‡

You may also edit this repository as you'd like and install your custom version of tcg command with npm run global

Thank you

typescript-call-graph's People

Contributors

chaofan-nirvana avatar chapmanjacobd avatar dependabot[bot] avatar johnsoncodehk avatar whyboris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

typescript-call-graph's Issues

Class methods

This is great! Have you thought about adding support for methods on classes/objects?

Browser just showing TypeScript-Call-Graph's own internal functions only - not the functions from my project

I've been trying to use tcg on both Windows + Linux, and no matter what filenames or wildcards I tell it to analyze it always just comes up with this in the browser:

2022-05-24_172944 - TypeScript Call Graph

Those are functions from the source code of TypeScript-Call-Graph itself, not my project.

The console output does list a bunch of my function names... so the analysis/backend does appear to be analyzing my code.. But for some reason the frontend is just displaying a graph for TypeScript-Call-Graph itself.

Screenshots

Please share beautiful screenshots below ๐Ÿ™‡โ€โ™‚๏ธ

This repository is still WIP ๐Ÿšง feel free to suggest other visualizations (and visualization libraries) for this project ๐Ÿค

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.