AVRO typescript converter
Simple tool to convert AVRO schema's to TypeScript interfaces.
Based on avro-typescript, but with several fixes and improvements:
- added a command line interface
- stripped namespaces
- added string enumerations
- removed duplicated types
- fixed array types with union arrays
- uses the recommended naming convention for interfaces (IMyName)
Installation
Intended to be used globally, so
npm i -g avro-typescript-converter
Usage
Example:
avro-typescript-converter example/standard_cap-value.avsc -v
or
npm run example
Build
Install the dependencies and run the compiler:
npm i
npm start