open-index/open-npm huggingface dataset:
npm package: @maxdome/swagger
Description: ``` app.use('/docs', require('@maxdome/swagger')()); app.get('/', (req, res) => {   res.redirect('/docs/'); }); ```
Latest version: 4.1.7

# Usage

```
app.use('/docs', require('@maxdome/swagger')());
app.get('/', (req, res) => {
  res.redirect('/docs/');
});
```
npm package: @maxdome/transformer
Description: ```javascript const Transformer = require('@maxdome/transformer');
Latest version: 1.1.3

# Usage

```javascript
const Transformer = require('@maxdome/transformer');

const transformer = new Transformer()
  .add({
    detect: data => data.format === 'a',
    from: 'a',
    to: 'b',
    run: data => { data.format = 'b'; return data; },
  })
  .add({
    detect: data => data.format === 'b',
    from: 'b',
    to: 'c',
    run: data => { data.format = 'c'; return data; },
  });
  
const data = { format: 'a' };
const to = 'c';

transformer.run(data, to); // { format: 'c' }
```
npm package: @maxdome/version
Description: ## The controller
Latest version: 1.1.5

# Usage

## The controller

```javascript
app.get('/version', require('@maxdome/version').controller());
```

## Only the version

```javascript
const version = require('@maxdome/version')();
```

# Swagger

```yaml
paths:
  /version:
    get:
      summary: "Response the version of the app"
      responses:
        200:
          description: "OK"
          schema:
            type: string
            example: "1.0.0"
        500:
          description: "Internal Server Error"
```