Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-to-json-schema

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
decreased by-8.19%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 29 Oct 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc