# swagger-to-static

> Converts a JSON or YML swagger spec to a static HTML page

Latest version **1.1.0** (published 2022-04-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install swagger-to-static
pnpm add swagger-to-static
yarn add swagger-to-static
bun add swagger-to-static
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-04-24 |
| First published | 2019-06-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Lazu George Mihai |
| Maintainers | glazu |
| Keywords | generate, swagger, swagger-ui, json, yml, html |

## Links

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

## Dependencies (2)

- [js-yaml](https://npm.io/package/js-yaml.md) ^3.13.1
- [argparse](https://npm.io/package/argparse.md) ^1.0.10

## 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.0 (latest) — 2022-04-24
- 1.0.4 — 2021-08-31
- 1.0.3 — 2020-09-26
- 1.0.2 — 2019-06-30
- 1.0.1 — 2019-06-30
- 1.0.0 — 2019-06-30

## README

## swagger-to-static

Convert a JSON or YML swagger spec to a static HTML file.

### Usage
* Install using `npm install --save swagger-to-static`
* Run using `./node_modules/swagger-to-static/index.js path/to/swagger.yml path/to/output/directory`


### Credits
This is merely a js port of [this gist](https://gist.github.com/oseiskar/dbd51a3727fc96dcf5ed189fca491fb3). All credits to [this](https://github.com/oseiskar) guy.

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