Socket
Socket
Sign inDemoInstall

grommet-swagger

Package Overview
Dependencies
129
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grommet-swagger

API documentation via swagger


Version published
Weekly downloads
18
Maintainers
2
Install size
36.1 MB
Created
Weekly downloads
 

Readme

Source

grommet-swagger

Swagger API browser built using grommet

Installation

npm install grommet-swagger

Using

You can run this directly from an HTML file via something like:

<html>
<head>
  <script>
    function render() {
      window.GrommetSwagger.mount('content', {
        routePrefix: '/grommet-swagger'
      });
    }
  </script>
</head>
<body>
  <div id="content"></div>
  <script src="grommet-swagger.min.js" onload="render()"></script>
</body>
</html>

Or, you can use Javascript/React:

import { GrommetSwagger } from 'grommet-swagger';

const Root = () => (
  <GrommetSwagger />
);

FAQs

Last updated on 19 Aug 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc