Class diagram for nodejs?

I look at node.js. I slowly get there. However, I have a question. Is there a “chart” to define a class hierarchy?

I understand that the socket is an EventEmitter, but also a Stream and ... well, is there an easy-to-use diagram to figure out what it is?

+4
source share
2 answers

I created a module that generates a class diagram for javascript / node / html / css. It is based on the WAE UML extension. He is called wavi. For javascript, the function, variable, and use of other modules are automatically recognized.

https://www.npmjs.org/package/wavi

Diagram generated by wavi

+3
source

Ok, this is the best answer I could find:

https://github.com/nsyee/node-objects-diagram/blob/master/node-objects.png

Unfortunately, the node-based diagram of the script does not seem to want to work with the last node. Thus, it shows the old (see Deprecated) version of node.

But maybe this is a good start?

+1
source

Source: https://habr.com/ru/post/1398170/


All Articles