GithubHelp home page GithubHelp logo

pagerinc / json-markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremyrajan/json-markdown

0.0 12.0 3.0 62 KB

Create Markdown docs for JSON Schema

License: MIT License

JavaScript 100.00%

json-markdown's Introduction

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 :).

json-markdown's People

Contributors

ben833 avatar cilindrox avatar jeremyrajan avatar juanda2222 avatar kuryaki avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.