1.0.1 • Published 3 years ago

@bastou/jsontotsinterface v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Json to typescript interface generator

Get json from url and export it to a typescript interface file with specified root name.

How to use

  • -n : (Optional) Interface name (default: RootObject)
  • -i : Input url or path to json
  • -o : Output path for generated Typescript interface file

Example :

node index.js -n=redditPopular -i=https://www.reddit.com/r/popular.json -o=./types/redditPopularInterface.ts  

Credits

@mariusalsh