swagger-typescript-api

Generate the API client for Fetch or Axios from an OpenAPI Specification

swagger-typescript-api downloads swagger-typescript-api version

swagger-typescript-api類似パッケージ:
npmのダウンロードトレンド
3 年
🌟 swagger-typescript-apiのREADME.mdにリアルタイム使用チャートを表示するには、以下のコードをコピーしてください。
## Usage Trend
[![Usage Trend of swagger-typescript-api](https://npm-compare.com/img/npm-trend/THREE_YEARS/swagger-typescript-api.png)](https://npm-compare.com/swagger-typescript-api#timeRange=THREE_YEARS)
🌟 swagger-typescript-apiのREADME.mdにGitHub Starsトレンドチャートを表示するには、以下のコードをコピーしてください。
## GitHub Stars Trend
[![GitHub Stars Trend of swagger-typescript-api](https://npm-compare.com/img/github-trend/swagger-typescript-api.png)](https://npm-compare.com/swagger-typescript-api)
統計詳細
パッケージ
ダウンロード数
Stars
サイズ
Issues
公開日時
ライセンス
swagger-typescript-api374,945-1.13 MB-1ヶ月前MIT
swagger-typescript-api のREADME

Swagger TypeScript API

  • Support for OpenAPI 3.0, 2.0, JSON and YAML
  • Generate the API Client for Fetch or Axios from an OpenAPI Specification

Any questions you can ask here: https://github.com/acacode/swagger-typescript-api/discussions

Examples

All examples you can find here: https://github.com/acacode/swagger-typescript-api/tree/main/tests

Usage

You can use this package in two ways:

CLI

npx swagger-typescript-api generate --path ./swagger.json

Or install locally in your project:

npm install --save-dev swagger-typescript-api
npx swagger-typescript-api generate --path ./swagger.json

Library

npm install --save-dev swagger-typescript-api
import * as path from "node:path";
import * as process from "node:process";
import { generateApi } from "swagger-typescript-api";

await generateApi({ input: path.resolve(process.cwd(), "./swagger.json") });

For more detailed configuration options, please consult the documentation.

Mass media

License

Licensed under the MIT License.