📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

@api-components/api-example-generator

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-components/api-example-generator

Examples generator from AMF model

3.0.0-preview.6
Version published
Weekly downloads
458
-16.27%
Maintainers
1
Weekly downloads
 
Created

Published on NPM

Build Status

Published on webcomponents.org

<api-example-generator>

Examples generator from AMF model.

<api-example-generator></api-example-generator>

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @api-components/api-example-generator

In an html file

<html>
  <head>
    <script type="module">
      import '@api-components/api-example-generator/api-example-generator.js';
    </script>
  </head>
  <body>
    <api-example-generator></api-example-generator>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@api-components/api-example-generator/api-example-generator.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <api-example-generator></api-example-generator>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Installation

git clone https://github.com/api-components/api-example-generator
cd api-url-editor
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm
open http://127.0.0.1:<port>/demo/

Running the tests

polymer test --npm

FAQs

Package last updated on 23 May 2019

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