Socket
Socket
Sign inDemoInstall

@crft/jsonizer

Package Overview
Dependencies
1
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @crft/jsonizer

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


Version published
Weekly downloads
2
increased by100%
Maintainers
6
Install size
1.37 MB
Created
Weekly downloads
 

Readme

Source

@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]
    }
  }
}

FAQs

Last updated on 15 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc