New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

swagger-ui-svelte

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-ui-svelte

Light version of swagger UI using Svelte framework

0.0.13
latest
Source
npm
Version published
Weekly downloads
981
14.6%
Maintainers
1
Weekly downloads
 
Created
Source

Swagger-UI for Svelte

npm npm GitHub Workflow Status

Light version of swagger UI using Svelte JavaScript framework.

Installation

npm i swagger-ui-svelte
// OR
yarn add swagger-ui-svelte

Note: to use this library in sapper, install as devDependency. See the link.

Local demo:

git clone https://github.com/matchid-project/swagger-ui-svelte
cd swagger-ui-svelte
npm install && npm run dev

Examples

An example of how to use the library

<script>
  import SwaggerUISvelte from "swagger-ui-svelte";
</script>

<SwaggerUISvelte swaggerUrl="/swagger.json" />

Properties

Component props:

PropTypeDefaultDescription
swaggerUrlstringswagger-example.jsonURL for swagger.json file

Keywords

swagger

FAQs

Package last updated on 08 Nov 2020

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