Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

avro-typescript-converter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avro-typescript-converter

Convert an AVRO schema to a TypeScript interface.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
decreased by-6.68%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Keywords

FAQs

Package last updated on 25 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc