Skip to content

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

License

Notifications You must be signed in to change notification settings

ncthbrt/decoders-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Namespaced Import

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published