js-code-structure icon indicating copy to clipboard operation
js-code-structure copied to clipboard

Analyse the structure of your js project (relations between js files)

Figure out relations between your js files (through require() and import)

npm

Example: Appium code:

appium code

Install

npm install -g js-code-structure

Usage

  1. Open a terminal
  2. Go to the directory of your project
  3. Input jss

an html file describing the relations of your the js files will be created and opened in your browser

Advanced Usage

  1. Ignore some directory inside the directory:

    jss --ignore dirname1 dirname2 dirname3 ...

    these dirs are ignored by default: ['node_modules', '.git', 'dist', 'build', 'doc', 'test', 'submodules']

  2. Show required files: hover on the node

  3. Show being required files: click the node

Tools

sigma.js

Thanks

License

MIT

Donate with bitcoin