@hvg24/umljs

1.0.6 • Public • Published

umljs

npm version License

Automatic UML Diagram generator for JavaScript ES6 styled codebases.

Installation

Nodejs Version: v22.12.0

You can easily install @hvg24/umljs via npm:

npm install -g '@hvg24/umljs'

Usage

umljs is a command-line tool that allows you to generate UML diagrams from your JavaScript ES6 codebase.

Options

  • -v, --version: Output the version number.
  • -i, --input <type>: Specify the input directory path containing the JavaScript files to be parsed for generating the UML diagram.
  • -o, --output <type>: Specify the output image file name with the file extension (Supported formats: .svg and .png).
  • -h, --help: Display help for the command.

Example

Generate a UML diagram from your JavaScript code:

umljs -i /path/to/your/codebase -o output.png

Replace /path/to/your/codebase with the actual path to your JavaScript codebase directory. The UML diagram will be saved as output.png.

Github Repositories you can try generating UML for:

  1. https://github.com/DefiLlama/DefiLlama-Adapters
    • /projects/helper/utils/
  2. https://github.com/QuiteAFancyEmerald/Holy-Unblocker
    • /lib/rammerhead

Example diagram for Holy-Unblocker repository

Holy-Unblocker project's UML diagram

Contact Information

If you have any questions, feedback, or encounter issues with this npm package, please feel free to reach out to the package developer:

  • GitHub

  • Email

  • Medium

License

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i @hvg24/umljs

Weekly Downloads

2

Version

1.0.6

License

ISC

Unpacked Size

1.75 MB

Total Files

4

Last publish

Collaborators

  • hvg24