JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 679
  • Score
    100M100P100Q110895F
  • License MIT

A utility for converting JSON schema definition to decoders

Package Exports

  • json-schema-to-decoders
  • json-schema-to-decoders/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (json-schema-to-decoders) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

json-schema-to-decoders

A handy utility for converting JSON schema definition to decoders javascript code.

Installation

To use the CLI you can install the package globally:

npm install -g json-schema-to-decoders

Usage

To convert a JSON definition file to decoders, use the following command:

json-schema-to-decoders <schema.json>

Alternatively you can use it as a library:

import Converter from "json-schema-to-decoders";

console.log(await Converter.convertFile("path/to/schema.json"));