{"library":"json-to-ts","type":"library","category":null,"description":"json-to-ts is a utility library, currently at stable version 2.1.0, designed to automatically convert JSON objects into corresponding TypeScript interface definitions. It parses input JSON data, intelligently inferring primitive types (strings, numbers, booleans), array structures, and nested objects. Key differentiators include its robust handling of complex scenarios like automatic array type merging, generation of union types where data properties might vary, and prevention of redundant type declarations, ensuring clean and efficient output. It also offers the capability to infer optional properties. This package aims to streamline the developer workflow by reducing the manual effort and potential for errors associated with defining TypeScript types for API responses or dynamic data structures. It follows an active release cadence, providing reliable tooling for TypeScript projects dealing with structured JSON.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","typescript","ts","convert","json","util","lib","types"],"last_verified":"Wed May 27","install":[{"cmd":"npm install json-to-ts","imports":["import JsonToTS from 'json-to-ts';","const JsonToTS = require('json-to-ts');","import type { RootObject, Cat } from 'json-to-ts/dist/types';"]},{"cmd":"yarn add json-to-ts","imports":[]},{"cmd":"pnpm add json-to-ts","imports":[]}],"homepage":null,"github":"https://github.com/MariusAlch/json-to-ts","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/json-to-ts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/json-to-ts/compatibility"}}