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

bootprint-json-schema

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootprint-json-schema

Converts a json-schema into a static html page

  • 2.0.0-rc.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
decreased by-13.69%
Maintainers
1
Weekly downloads
 
Created
Source

bootprint-json-schema

NPM version Travis Build Status Coverage Status Greenkeeper badge

Converts a json-schema into a static html page

This bootprint-module can be used to convert a json-schema to a human-readbable HTML.

Features

  • Complete support for the keywords from JSON-schema draft-04 and draft-06
  • Links to the specification for all keywords
  • Full test coverage of JavaScript-code
  • Lots of tests to cover Handlebars templates and partials

Installation

npm -g install bootprint
npm -g install bootprint-json-schema

Usage

After installing the package globally, you can run bootprint with the command

bootprint json-schema https://raw.githubusercontent.com/bootprint/bootprint-json-schema/v2.0.0-rc.2/examples/example.json target

example.json can be found in examples/example.json in this project. It is a copy of the fstab-example from the JSON-schema documentation, licensed under the AFL or BSD license.

Bootprint will then generate the following files:

examples/target/
├── index.html
├── main.css
└── main.css.map

Customizing

You can write your own module that customizes the partials and helpers in this module (see the bootprint documentation) for details.

The entrypoint JavaScript-file of such a module would look like.

module.exports = function (customize) {
  return customize
    .load(require('bootprint-json-schema'))
    .merge({
      // You customizations here
    })

// Add "package" metadata. This can be evaluated by documentation generators
module.exports.package = require('./package')

API

see docs/api.md

License

bootprint-json-schema is published under the MIT-license.

See LICENSE for details.

Release-Notes

For release notes, see CHANGELOG.md

Contributing guidelines

See CONTRIBUTING.md.

FAQs

Package last updated on 05 Aug 2017

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