antfu / json-schema-to-typescript-lite

Compile JSONSchema to TypeScript type declarations

Home Page:https://bcherny.github.io/json-schema-to-typescript-browser/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

json-schema-to-typescript-lite

Compile json schema to typescript typings

A fork of json-schema-to-typescript with lighter dependencies and a few tweaks.

  • Remove Prettier integrations - it now generates better formatted code by default, and you can always use Prettier manually afterward if needed
  • Replace lodash with bundled lodash-es for smaller bundle size
  • Remove CLI support and the dependencies - this package aims to have programmatic usage only
  • Modern build with ESNext target
  • ESM & CJS dual module support
  • Support customName options

About

Compile JSONSchema to TypeScript type declarations

https://bcherny.github.io/json-schema-to-typescript-browser/

License:MIT License


Languages

Language:TypeScript 100.0%Language:JavaScript 0.0%