@humwing/swagger-code-gen
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

安装

yarn add @humwing/swagger-code-gen

使用

const api = require('@humwing/swagger-code-gen')
const path = require('path')
api.code2ts({
  template: {},
  filepath: path.resolve('./api'),
  swaggerApiUrl: 'http://example.com/common/v2/api-docs?group=api'
})
api.code2js({
  filepath: path.resolve('./api.js'),
  swaggerApiUrl: 'http://example.com/common/v2/api-docs?group=api'
})

Readme

Keywords

none

Package Sidebar

Install

npm i @humwing/swagger-code-gen

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

32 kB

Total Files

15

Last publish

Collaborators

  • humwing