@pubinfo/unplugin-openapi
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

@pubinfo/unplugin-openapi

npm version Monorepo License

Generate request files according to the OpenAPI.

Install

# npm
npm install @pubinfo/unplugin-openapi -D

# yarn
yarn add @pubinfo/unplugin-openapi -D

# pnpm
pnpm install @pubinfo/unplugin-openapi -D

Usage

Powered by unplugin, unplugin-openapi provides a plugin interface for bundlers.

If you are using config file, we will load config file firstly.

Vite/Rollup

// vite.config.js / rollup.config.js
import OpenAPI from '@pubinfo/unplugin-openapi/vite'

export default {
  plugins: [
    OpenAPI({ /* options */ })
  ]
}

Webpack

// webpack.config.js
import OpenAPI from '@pubinfo/unplugin-openapi/webpack'

module.exports = {
  plugins: [
    OpenAPI({ /* options */ })
  ]
}

Configuration

Same as @pubinfo/openapi

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.7.04latest

Version History

VersionDownloads (Last 7 Days)Published
0.7.04
0.6.618
0.6.51
0.6.42
0.6.31
0.6.20
0.6.10
0.6.0
0
0.4.0
0
0.3.0
0
0.2.3
0
0.2.2
0
0.2.1
0
0.2.0
0
0.1.10
0.1.00
0.0.100
0.0.90
0.0.80
0.0.71
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i @pubinfo/unplugin-openapi

Weekly Downloads

27

Version

0.7.0

License

MIT

Unpacked Size

16.9 kB

Total Files

23

Last publish

Collaborators

  • werheng
  • wsypower