@krlwlfrt/omeco
OData metadata converter
Last updated 12 days ago by krlwlfrt .
GPL-3.0-only · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @krlwlfrt/omeco 
SYNC missed versions from official npm registry.

@krlwlfrt/omeco

pipeline status npm license) documentation

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-plantuml is installed if you want to generate class diagrams.

CLI

Install and execute @krlwlfrt/omeco globally and use it as a CLI.

npm install -g @krlwlfrt/omeco

omeco convert PATH/TO/METADATA.XML

This 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 --help

Programmatically

Install @krlwlfrt/omeco as a dependency in your project and use it programmatically.

npm install @krlwlfrt/omeco

Extract

Use extractData to extract data from a metadata description.

Compile

  • Use generateTypeScript from @krlwlfrt/tsg to generate TypeScript interfaces from the extracted data.
  • Use compilePlantUml to generate PlantUML from the extracted data.
  • Use writePlantUmlPng to write a class diagram (PNG) from generated PlantUML.

Documentation

See documentation for detailed description of usage.

Current Tags

  • 0.3.0                                ...           latest (12 days ago)

4 Versions

  • 0.3.0                                ...           12 days ago
  • 0.2.0                                ...           10 months ago
  • 0.1.0                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 4
This Week 4
This Month 18
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (18)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |