Socket
Socket
Sign inDemoInstall

json-to-json-schema

Package Overview
Dependencies
8
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    json-to-json-schema

JSON to JSON Schema. Convert a JSON to a JSON Schema describing that JSON


Version published
Weekly downloads
1K
decreased by-27.17%
Maintainers
1
Install size
205 kB
Created
Weekly downloads
 

Readme

Source

JSON to JSON Schema

Build Status

JSON to JSON Schema convert a JSON to a JSON Schema describing that JSON

Usage

import {convert} from 'json-schmea-from-json';

const myJson = {name: 'string'};

const mySchema = convert(myJson);

console.log(mySchema); // => {type: 'object', properties: {name: {type: 'string'}}}

Installation

Use npm or Bower to install this package

npm install --save json-to-json-schema
bower install --save json-to-json-schema

The browser module supports all UMD module systems. It exposes JSONToJSONSchema global object when there is no module system available.

Development

To install dependencies

npm install

To run tests

npm test

To run tests continuously and watch for changes install mocha and run:

mocha --compilers js:babel/register -w

To make a new browser build run

npm run browserify

License

MIT

Keywords

FAQs

Last updated on 29 Oct 2015

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