# typescript-json-schema **Repository Path**: mirrors_felixfbecker/typescript-json-schema ## Basic Information - **Project Name**: typescript-json-schema - **Description**: Generate json-schema from your Typescript sources - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # typescript-json-schema [![npm version](https://img.shields.io/npm/v/typescript-json-schema.svg)](https://www.npmjs.com/package/typescript-json-schema) [![Build Status](https://travis-ci.org/YousefED/typescript-json-schema.svg?branch=master)](https://travis-ci.org/YousefED/typescript-json-schema) Generate json-schemas from your Typescript sources. ## Features * Compiles your Typescript program to get complete type information. * Translates required properties, extends, annotation keywords, property initializers as defaults. ## Usage ### Node.js * Install with `npm install typescript-json-schema -g` * Generate schema from a typescript type: `typescript-json-schema project/directory/tsconfig.json fully.qualified.type.to.generate` In case no tsconfig.json is available for your project, you can directly specify the .ts files (this in this case we use some built-in compiler presets): * Generate schema from a typescript type: `typescript-json-schema "project/directory/**/*.ts" fully.qualified.type.to.generate` ## Background Inspired and builds upon [Typson](https://github.com/lbovet/typson/), but typescript-json-schema is compatible with more recent Typescript versions. Also, since it uses the Typescript compiler internally, more advanced scenarios are possible.