decoders-generator

1.3.2 • Public • Published

decoder-generator

Takes in a typescript file and generates a set of decoders based on the types contained therein.

Installlation

npm install -g decoders-generator

Usage

Basic usage

cat ./input-file.ts | decoders-generator > outfile.ts

Support for tagged unions

cat ./input-file.ts | decoders-generator --tag=kind > outfile.ts

Readme

Keywords

none

Package Sidebar

Install

npm i decoders-generator

Weekly Downloads

8

Version

1.3.2

License

ISC

Unpacked Size

25.4 kB

Total Files

7

Last publish

Collaborators

  • ncthbrt