@bastou/jsontotsinterface
v1.0.1
Published
Get json from url and export it to a typescript interface file with specified root name.
Downloads
2
Maintainers
Readme
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