# type-swagger

> TypeScript/JavaScript API client genetarator from Swagger/OpenAPI specification.

Latest version **0.2.1** (published 2020-08-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install type-swagger
pnpm add type-swagger
yarn add type-swagger
bun add type-swagger
```

Provides the command `type-swagger`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2020-08-22 |
| First published | 2020-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 32.7 KB |
| Known vulnerabilities | 0 (+27 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jese Rodriguez |
| Maintainers | jeserodz |

## Links

- npm: https://www.npmjs.com/package/type-swagger
- Repository: https://github.com/jeserodz/type-swagger
- Homepage: https://github.com/jeserodz/type-swagger#readme
- Issues: https://github.com/jeserodz/type-swagger/issues
- npm.io page: https://npm.io/package/type-swagger

## Dependencies (8)

- [ora](https://npm.io/package/ora.md) ^4.0.5
- [axios](https://npm.io/package/axios.md) ^0.19.2
- [boxen](https://npm.io/package/boxen.md) ^4.2.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [yargs](https://npm.io/package/yargs.md) ^15.4.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.19
- [validator](https://npm.io/package/validator.md) ^13.1.1
- [extract-zip](https://npm.io/package/extract-zip.md) ^2.0.1

## Recent versions

- 0.2.1 (latest) — 2020-08-22
- 0.2.0 — 2020-08-12
- 0.1.0 — 2020-08-12

## README

# Type-Swagger 

JavaScript/TypeScript HTTP client generator from a Swagger/OpenAPI spec.

## Installation

You can install the CLI tool locally or run it directly from NPM using `npx`.

### With `NPX`
`$ npx type-swagger generate <name> <specUrl>`

### Local Installation
`$ npm install -g type-swagger`

## Usage

### Generate

Generate a new client SDK.

`type-swagger generate <name> <specUrl>`

- **name:** Name of the package to be used.
- **specUrl:** URL of the Swagger spec in JSON format.

### Update

Update an existing client SDK.

`type-swagger update <specUrl>`

- **specUrl:** URL of the Swagger spec in JSON format.

---
_Source: https://npm.io/package/type-swagger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
