package
Generate the API client for Fetch or Axios from an OpenAPI Specification
npm install swagger-typescript-apiGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Any questions you can ask here: https://github.com/acacode/swagger-typescript-api/discussions
All examples you can find here: https://github.com/acacode/swagger-typescript-api/tree/main/tests
You can use this package in two ways:
npx swagger-typescript-api generate --path ./swagger.jsonOr install locally in your project:
npm install --save-dev swagger-typescript-api
npx swagger-typescript-api generate --path ./swagger.jsonnpm install --save-dev swagger-typescript-apiimport * 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.
Licensed under the MIT License.
smorimoto
sora@morimoto.io
Estimated unpacked size across 65 packages.
615.7 MB+
Includes dependencies.
^1.49.0
1.53.2
^6.0.3
7.0.2
^12.1.3
12.1.3
6.0.0
6.1.0
^7.0.8
7.0.8
2.5.2
2.6.8
2.0.0-bab6bed
2.0.0-bab6bed
13.1.0
2.0.25