New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

online-swagger-codegen

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

online-swagger-codegen

An online swagger client generator

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

Online swagger codegen

An online swagger client generator

This package generate a zip folder (sdk.zip) from your swagger JSON file and the desired client using https://generator.swagger.io/api/gen/clients endpoint.

Installation

yarn add --dev online-swagger-codegen

Usage

Example:

GenerateSDK({
        specURL: 'http://localhost:3000/swaggher.json',
        outPath: path.resolve(__dirname, '../generated'),
    });

Input parameters:

  • outPath - required - place to save zip file
  • client - optional, default: typescript-node
  • specURL - optional - the url to swagger json file
  • spec - optional - the swagger json object
  • specURL or spec should be provided

Supported clients

  • Typescript node
  • Typescript angular
  • ...

Keywords

swagger

FAQs

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