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

vcl-doc-client

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vcl-doc-client

An HTML viewer for the doc generated by vcl/doc-gen

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

VCL Documentation Client

This is an HTML viewer for the docs based on a JSON structure such as generated by vcl/doc-gen. The doc fragments are included using shadow DOM.

While it has been created for the VCL it is mostly agnostic and can be used to browse any structured documentation.

Demo

VCL Documentation.

Usage

Use vcl/doc-gen to generate the input for this client. Or generate the documentation.json yourself.

Example

// var doc = {...};
var vclDocClient = require('vcl-doc-client');

vclDocClient.getBuild(doc, function(html) {
  console.log(html);
});

In order to inject custom CSS or JS before the </body> tag, doc.customHTML can be set accordingly.

Keywords

FAQs

Package last updated on 29 May 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