@krlwlfrt/omeco
v1.1.0
Published
OData metadata converter
Maintainers
Readme
@krlwlfrt/omeco
This tool can extract data from an OData metadata file (currently only v2) and compile it to other representations of the extracted data. Currently these are:
- TypeScript interfaces
- PlantUML and a resulting class diagram
- Caution: Please make sure that
node-plantumlis installed if you want to generate class diagrams.
- Caution: Please make sure that
CLI
Install and execute @krlwlfrt/omeco globally and use it as a CLI.
npm install -g @krlwlfrt/omeco
omeco convert PATH/TO/METADATA.XMLThis will generate output files in the same directory as the supplied metadata file with names which match the basename (without extension) of the source file.
For further usage refer to the help section of the CLI:
omeco --helpProgrammatically
Install @krlwlfrt/omeco as a dependency in your project and use it programmatically.
npm install @krlwlfrt/omecoExtract
Use extractData to extract data from a metadata description.
Compile
- Use
generateTypeScriptfrom@krlwlfrt/tsgto generate TypeScript interfaces from the extracted data. - Use
compilePlantUmlto generate PlantUML from the extracted data. - Use
writePlantUmlPngto write a class diagram (PNG) from generated PlantUML.
Documentation
See documentation for detailed description of usage.
