@something.technology/avro-typescript-converter

0.3.0 • Public • Published

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)
  • Added documentation from schema to output
  • Optional concatenation to single file

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

/@something.technology/avro-typescript-converter/

    Package Sidebar

    Install

    npm i @something.technology/avro-typescript-converter

    Weekly Downloads

    1

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    45.3 kB

    Total Files

    18

    Last publish

    Collaborators

    • something-ci
    • pipo93