node package manager

rosid-handler-components

rosid-handler-components

Travis Build Status AppVeyor Status Coverage Status Dependencies

UI to help you build and document web components.

Install

npm install rosid-handler-components

Usage

API

const components = require('rosid-handler-components')
 
components().then((data) => {})

Rosid

Add the following object to your rosidfile.json, rosidfile.js or routes array. rosid-handler-components will always return the HTML of the UI that can be viewed in the browser.

{
    "name"    : "Components",
    "path"    : "ui/**/*.html*",
    "handler" : "rosid-handler-components"
}

Parameters

  • filePath {?*} Not used by this module.
  • opts {?Object} Options.

Returns

  • {Promise}({String|Buffer}) HTML of the UI.