@rline/json
TypeScript icon, indicating that this package has built-in type declarations

9.7.0 • Public • Published
Logo

@rline/json

JSON Compiler CLI

  • JSON Schema compiler, compiles multiple schemas into a single portable schema file by resolving all references.

  • Typescript type generator, generate types from json schemas. Supports, allof,oneOf, other complex JSON schema properties.

Installation

pnpm add -g @rline/json

Usage

Before using any command, the schema project must be initialized.

Initialize Project

The following command creates a new JSON-Schema project has a schema.config.json file to configure project variables.

json init

Schema Compiler

Compiles JSON-Schema files into a single portable schema file

json schema

Example (Schema Compiler)

The compiled schema will be saved in the output directory provided in schema.config.json

json schema

Typescript Compiler

The compiled type will be saved in the output directory provided in the schema.config.json

json tsc

Documentation

Detailed documentation Documentation

Funding

Thank you for using @puq/core It's an open-source project, and maintaining it takes time and effort. If you find this library useful, please consider supporting its ongoing development. Your contributions help ensure that the project stays up-to-date, secure, and well-maintained.

Instant Funding

Your funding will go toward

  • Bug fixes and updates to ensure compatibility with the latest versions of dependencies.
  • New features that will make the library even more powerful.
  • Documentation improvements to help users get the most out of [Your Library Name].
  • General maintenance to keep the library running smoothly and securely.

Contact to the developer: [robert.brightline@gmail.com]

Support the developer

Package Sidebar

Install

npm i @rline/json

Weekly Downloads

2

Version

9.7.0

License

MIT

Unpacked Size

302 kB

Total Files

97

Last publish

Collaborators

  • rbrightline