I am using this tool to parse class diagrams. The tool doesn't parse the types of attributes.
NodeJS script:
import { parse, parseFile, formatters } from 'plantuml-parser';
// Example PlantUML
const data = `
@startuml
!theme plain
class Publication {
title : String
}
@enduml
`;
// parse PlantUML
const result = parse(data);
// Format and print parse result
console.log(
formatters.default(result)
);
I am using this tool to parse class diagrams. The tool doesn't parse the types of attributes.
NodeJS script:
Output:
The
String
type of thetitle
attribute is not present in the output.