{"repo":"bcherny/json-schema-to-typescript","free":true,"listed":false,"github":"https://github.com/bcherny/json-schema-to-typescript","clone":"git clone https://github.com/bcherny/json-schema-to-typescript.git","description":"Compile JSON Schema to TypeScript type declarations","language":"TypeScript","stars":3334,"topics":["typescript","json-schema"],"license":"MIT","category":"dev-tools","readme_excerpt":"json-schema-to-typescript [![Build Status][build]](https://github.com/bcherny/json-schema-to-typescript/actions?query=branch%3Amaster+workflow%3ACI) [![npm]](https://www.npmjs.com/package/json-schema-to-typescript) [![mit]](https://opensource.org/licenses/MIT) ![node] [build]: https://img.shields.io/github/actions/workflow/status/bcherny/json-schema-to-typescript/ci.yml?style=flat-square [npm]: https://img.shields.io/npm/v/json-schema-to-typescript.svg?style=flat-square [mit]: https://img.shields.io/npm/l/json-schema-to-typescript.svg?style=flat-square [node]: https://img.shields.io/badge/Node.js-16+-417e37?style=flat-square Compile JSON Schema to TypeScript typings. Example Check out the live demo. Input: Output: Installation Usage json-schema-to-typescript is easy to use via the CLI, or programmatically. CLI First make the CLI available using one of the following options: Then, use the CLI to convert JSON files to TypeScript typings: You can pass any of the options described below (including style options) as CLI flags. Boolean values can be set to false using the no- prefix. API To invoke json-schema-to-typescript from your TypeScript or JavaScript program, import it and call compile or compileFromFile . See server demo and browser demo for full examples. Options compileFromFile and compile accept options as their last argument (all keys are optional): key type default description - - - - additionalProperties boolean true Default value for additionalProperties , when it is","default_branch":null,"files":null,"tree":[],"storefront":"/r/bcherny","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bcherny/json-schema-to-typescript/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}