{"library":"plantuml-transpiler","title":"PlantUML Transpiler","description":"A Node.js library (v1.0.0, MIT) that converts PlantUML class diagrams into code for Java, C#, Python, Ruby, Kotlin, JavaScript, and TypeScript. Supports classes, interfaces, enums, abstract classes, generics, visibility modifiers, static/final members, and package/namespace handling. Key differentiators: multi-language output from a single PlantUML source, language-specific idioms, and type system mapping. Actively maintained with monthly releases.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install plantuml-transpiler"],"cli":null},"imports":["import PlantUMLTranspiler from 'plantuml-transpiler'","const { default: PlantUMLTranspiler } = require('plantuml-transpiler')","import type { TranspilerOptions } from 'plantuml-transpiler'","import { SupportedLanguage } from 'plantuml-transpiler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import PlantUMLTranspiler from 'plantuml-transpiler';\n\nconst transpiler = new PlantUMLTranspiler();\n\nconst plantUmlCode = `\n@startuml\nclass User {\n  -id: int\n  -name: String\n  +User(id: int, name: String)\n  +getId(): int\n  +getName(): String\n}\n\ninterface UserService {\n  +findById(id: int): User\n  +save(user: User): void\n}\n\nclass UserServiceImpl {\n  -userRepository: UserRepository\n  +UserServiceImpl(userRepository: UserRepository)\n  +findById(id: int): User\n  +save(user: User): void\n}\n\nUserServiceImpl ..|> UserService\nUserServiceImpl --> UserRepository\n@enduml\n`;\n\nconst javaCode = transpiler.transpile(plantUmlCode, 'java');\nconsole.log(javaCode);\n\nconst tsCode = transpiler.transpile(plantUmlCode, 'typescript');\nconsole.log(tsCode);","lang":"javascript","description":"Creates a transpiler instance, parses a PlantUML class diagram with classes, interface, and relationships, then generates Java and TypeScript code.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}