Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mvaldesdeleon/express-swag

From file to middleware in 6 seconds or less
https://github.com/mvaldesdeleon/express-swag

Last synced: about 6 hours ago
JSON representation

From file to middleware in 6 seconds or less

Awesome Lists containing this project

README

        

# express-swag

From file to middleware in 6 seconds or less

```JS
const swag = require('express-swag');

// ...

// a json is fine too
swag('path/to/spec.yaml').then(middleware => {
app.use(middleware);
app.listen(80);
// Profit
});
```

# install
with [npm](https://npmjs.org) do:

```
npm install express-swag
```

# license

MIT