1.0.2 • Published 4 years ago
@busyhe/jsonschema-to-markdown v1.0.2
JSON schema to markdown generator
Install & Usage
npm install jsonschema2mkGenerate DOC.md:
npx jsonschema2mk --schema schema.json >DOC.mdAdd partials:
npx jsonschema2mk --schema schema.json --partials dir/ >DOC.mdAdd to package.json
{
	"scripts": {
		"doc": "jsonschema2mk --schema schema.json >DOC.md"
	}
}Plugins:
Example to add partials:
const fs = require("fs");
module.exports = function(data, jsonschema2mk) {
	jsonschema2mk.load_partial_dir(__dirname + "/partials");
};Use as lib:
See cli.js