Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

api-gensdk

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-gensdk

[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down

  • 0.1.20
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

api-gensdk

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Quick View

gensdk from swagger 2.0 or OpenAPI 3.0:

Simple

gensdk url http://xxx/v2/api-docs -c true

Use Config

gensdk config ./xxx.js or gensdk config ./xxx.json

Config interface:

interface CliConfig {
  api: string;
  /** dir for gensdk */
  sdkDir: string;
  /** path for template */
  templatePath: string;
  /** filename style, true 为大驼峰,lower 为小驼峰 */
  camelCase?: boolean | 'lower' = false;
  /** gen type */
  type?: 'ts' | 'js' = 'ts';
}

genAPISDK

function genAPISDK(data: RouteMetadataType[], config: GenConfig) => void

FAQs

Package last updated on 06 Nov 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc