Skip to content

CLI to generate an interactive graph of functions and calls from your TypeScript files

License

Notifications You must be signed in to change notification settings

whyboris/TypeScript-Call-Graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

411286e · Nov 10, 2024

History

51 Commits
Oct 20, 2022
Aug 5, 2020
Jun 12, 2020
Jun 5, 2020
Nov 10, 2024
Jun 16, 2020
Jun 26, 2020
Jul 15, 2020
Jun 16, 2020
Aug 1, 2022
Jul 18, 2020
Jun 17, 2020
Feb 24, 2023
Oct 20, 2022
Jun 17, 2020

Repository files navigation

npm version

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