@crft/jsonizer
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@crft/jsonizer

JSON Schema all the Objects! It works in the browser and Node.

Usage

Install:

yarn add @crft/jsonizer

then call it like:

import { schemaGenerator } from '@crft/jsonizer';

const result = schemaGenerator({
  bacon: true
});

the result will look like:

{
  type: 'object',
  required: [],
  properties: {
    bacon: {
      title: 'Bacon',
      type: 'boolean',
      examples: [true]
    }
  }
}

/@crft/jsonizer/

    Package Sidebar

    Install

    npm i @crft/jsonizer

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    21.5 kB

    Total Files

    15

    Last publish

    Collaborators

    • sw-fp
    • re_fp
    • jgenere-fp
    • jtongus6
    • lmontanaro
    • jj_fp
    • wambosa
    • myspivey
    • aa-fp
    • taysmith92
    • hannuraina
    • jweinstein92
    • amcdnl
    • dsem
    • benturner-fp