# @bb-cli/bb-convert-plugin-pageable

> Pageable plugin for BB Convert RAML

Latest version **2.0.1** (published 2017-09-21) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @bb-cli/bb-convert-plugin-pageable
pnpm add @bb-cli/bb-convert-plugin-pageable
yarn add @bb-cli/bb-convert-plugin-pageable
bun add @bb-cli/bb-convert-plugin-pageable
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2017-09-21 |
| First published | 2017-05-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | bb-cli |
| Keywords | bb-cli-plugin, bb-cli-convert-plugin |

## Links

- npm: https://www.npmjs.com/package/@bb-cli/bb-convert-plugin-pageable
- npm.io page: https://npm.io/package/@bb-cli/bb-convert-plugin-pageable

## Recent versions

- 2.0.1 (latest) — 2017-09-21
- 2.0.0 — 2017-08-16
- 1.0.1 — 2017-07-19
- 1.0.0 — 2017-05-15

## README

# BB-Convert Pageable plugin middleware

This plugin will make any HTTP GET service method from RAML specification which has _from_ and _size_ query parameters to respect them. So those service methods will return not full data, but subset of it.

This plugin will only by applied in mock template.

## Install alongside bb-convert (prefer global)

```bash
npm i -g @bb-cli/bb-convert-plugin-pageable
```

## Usage

```bash
bb-convert raml --transform-plugins @bb-cli/bb-convert-plugin-pageable --template mock-ng
# OR
bb-convert raml --transform-plugins pageable --template mock-ng
```

## Configure in .bbconfig

Pageable plugin can be configured in _.bbconfig_ file:

```javascript
{
  "default": {
    "convert": {
      "raml": {
        "transform-plugins": "pageable"
      }
    }
  }
}
```

With this configuration in place, you can simply run

```bash
bb-convert raml --template mock-ng
```

---
_Source: https://npm.io/package/@bb-cli/bb-convert-plugin-pageable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
