Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/meabed/swagger-to-typescript-client

A CLI to Generate typescript axios client from swagger & openapi file
https://github.com/meabed/swagger-to-typescript-client

openapi3 swagger swagger-to-typescript swagger-typescript-api typescript

Last synced: 2 months ago
JSON representation

A CLI to Generate typescript axios client from swagger & openapi file

Awesome Lists containing this project

README

        

# swagger-to-typescript-client
[![Build Status](https://github.com/meabed/swagger-to-typescript-client/actions/workflows/ci.yml/badge.svg)](https://github.com/meabed/swagger-to-typescript-client/actions/workflows/ci.yml)
[![NPM version](https://img.shields.io/npm/v/swagger-to-typescript-client.svg)](https://www.npmjs.com/package/swagger-to-typescript-client)
[![Downloads](https://img.shields.io/npm/dm/swagger-to-typescript-client.svg)](https://www.npmjs.com/package/swagger-to-typescript-client)
[![UNPKG](https://img.shields.io/badge/UNPKG-OK-179BD7.svg)](https://unpkg.com/browse/swagger-to-typescript-client@latest/)

### A CLI to Generate typescript axios client from swagger & openapi file

## Installation
NPM
```npm
npm install --save swagger-to-typescript-client
```
Yarn
```yarn
yarn add swagger-to-typescript-client
```

## Usage
```
node ./node_modules/swagger-to-typescript-client/dist/index.js --pkg client-name --output ./sdk --swagger ./swagger.json
```

Or use NPX
```
npx swagger-to-typescript-client --pkg client-name --output ./sdk --swagger ./swagger.json
```

## Example
TBA