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

@pager/json-markdown

Package Overview
Dependencies
Maintainers
13
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pager/json-markdown

Generate Markdown documentation for your JSON schema

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
13
Weekly downloads
 
Created
Source

json-markdown

This Project is fork of https://github.com/jeremyrajan/json-markdown. It is forked to mantain dependencies.

Build Status

About

json-markdown is a simple tool to generate documentation for your JSON schema. The lib provides a CLI api and pro-grammatical api for use in your applications.

Usage

npm install --save [-g] json-markdown

CLI

json-markdown <location-to-your-file.json> --w=true/false

You can pass -w=true/false, if you want to write to a file or not. By default its true.

This will generate the markdown from your schema and create SCHEMA.md in the current directory. You can also provide an output file, to which you want to write:

json-markdown <location-to-your-file.json> <output-file-location.md> --w=true/false

API usage.

const jsonmarkdown = require('json-markdown');
const schemaLoc = './product.json';
const outputFile = 'output-file.md'; // if you don't provide an output file, it will create an .md from your schema filename.
// the third argument defines, if you want to write to file or not. Set it to false, if you dont need to create a markdown yet.
jsonmarkdown.process(schemaLoc, outputFile, true, (err, result) => {
  console.log(result);
});

Report issues: https://github.com/jeremyrajan/jsonschema-md/issues

Hope it helps, someone :).

Keywords

FAQs

Package last updated on 11 Dec 2018

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