Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.07 KB

README.md

File metadata and controls

31 lines (19 loc) · 1.07 KB

@theewave/json-to-ts-cli

This is a simple CLI tool that helps to convert JSON data to typescript interfaces. It can take the JSON data from terminal input or from a file and then output the converted typescript interfaces to a file or to the terminal.

Installation

To install the package, use the following command:

npm install @theewave/json-to-ts-cli

Usage

To use the package in your project, enter this command in your terminal:

npx jtsc

This will spin up a command-line wizard that will take you through the simple conversion process.

  • This is an example of what the process looks like when you output the result to the terminal An example of the process

  • This is an example of what the process looks like when you output the result to a file An example of the process

Credits

Marius Alch for the great json-to-ts module.