# json2ts

json2ts converts a JSON to TypeScript interfaces.

## Installation

```
npm install json2ts
```

## Usage
json2ts can be used as a Node.js module:

```
let json2ts = require("json2ts");
let result = json2ts.convert(jsonContent);

```

## As IDE Extension

This module is used as IDE Extension for [Visual Studio Code](https://github.com/GregorBiswanger/VSCode-json2ts) and [Brackets](https://github.com/GregorBiswanger/Brackets-json2ts).

![json2ts Screenshot](https://github.com/GregorBiswanger/VSCode-json2ts/blob/master/images/json2ts.gif?raw=true)


## Tests

```
npm test
```

### Contributing
Feel free to submit a pull request if you find any bugs (to see a list of active issues, visit the [Issues section](https://github.com/GregorBiswanger/json2ts/issues)).
Please make sure all commits are properly documented.

### License
MIT-licensed

** Enjoy! **