What are some tools (or set of tools) out there that can create JavaScript from a diagram such as UML. This is especially of interest for Node.js but JavaScript in general is of interest too.
Ideally it would also have the ability to create a diagram from Code as well, but that's not a requirement.
The goal is to use it to do https://en.wikipedia.org/wiki/Model-driven_architecture
UPDATE Jan 9, 2018: The software should run on Windows and Mac. Paid is fine, no particular budget as this is for commercial purposes and if a more expensive product saves more money than it costs because it's more effective, then it's easily justified.