# openapi2js

> Convert OpenAPI (swagger) 2.0 / 3.0.x definition to simple JS API

Latest version **1.1.2** (published 2020-04-28) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install openapi2js
pnpm add openapi2js
yarn add openapi2js
bun add openapi2js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2020-04-28 |
| First published | 2016-06-27 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mike Ralphson |
| Maintainers | mermade |
| Keywords | swagger, openapi, openapi3, js, sdk, jsdoc, javascript |

## Links

- npm: https://www.npmjs.com/package/openapi2js
- Repository: https://github.com/Mermade/openapi2js
- Homepage: https://github.com/Mermade/openapi2js#readme
- Issues: https://github.com/Mermade/openapi2js/issues
- npm.io page: https://npm.io/package/openapi2js

## Dependencies (1)

- [yaml](https://npm.io/package/yaml.md) ^1.9.2

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.1.2 (latest) — 2020-04-28
- 1.1.1 — 2018-10-03
- 1.1.0 — 2017-07-23
- 1.0.10 — 2016-09-05
- 1.0.9 — 2016-09-05
- 1.0.8 — 2016-08-24
- 1.0.7 — 2016-08-23
- 1.0.6 — 2016-08-07
- 1.0.5 — 2016-08-07
- 1.0.4 — 2016-08-06
- 1.0.3 — 2016-08-06
- 1.0.2 — 2016-06-29
- 1.0.1 — 2016-06-27
- 1.0.0 — 2016-06-27

## README

# OpenAPI2js

Convert OpenApi (Swagger) 2.0 / 3.0.x JSON/YAML definition to simple Javascript API, complete with JSDOC, suitable for use with the Open Nitro SDK

## Usage:

```javascript
    var oa2js = require('openapi2js');
    oa2js.openAPI2js(inFilename,outFilename);
```

or

```javascript
    var oa2js = require('openapi2js');
    var jsStr = oa2js.openAPI2js(swaggerObject);
```

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