# remi-runner

> A remi extension that allows registering plugins that are returning promises during their registration or are registered synchronously

Latest version **1.1.3** (published 2016-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install remi-runner
pnpm add remi-runner
yarn add remi-runner
bun add remi-runner
```

## 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.3 |
| Published | 2016-06-09 |
| First published | 2016-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zoltan Kochan |
| Maintainers | zkochan |
| Keywords | remi, remi-extension, extension, promise, sync |

## Links

- npm: https://www.npmjs.com/package/remi-runner
- Repository: https://github.com/remijs/remi-runner
- Homepage: https://github.com/remijs/remi-runner#readme
- Issues: https://github.com/remijs/remi-runner/issues
- npm.io page: https://npm.io/package/remi-runner

## Dependencies (2)

- [is-promise](https://npm.io/package/is-promise.md) ^2.1.0
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.9.0

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2016-06-09
- 1.1.2 — 2016-06-09
- 1.1.1 — 2016-06-09
- 1.1.0 — 2016-05-21
- 1.0.0 — 2016-02-21
- 0.0.0 — 2016-01-30

## README

# remi-runner

A remi extension that allows registering plugins that are returning promises during their registration or are registered synchronously

[![Dependency Status](https://david-dm.org/remijs/remi-runner/status.svg?style=flat)](https://david-dm.org/remijs/remi-runner)
[![Build Status](https://travis-ci.org/remijs/remi-runner.svg?branch=master)](https://travis-ci.org/remijs/remi-runner)
[![npm version](https://badge.fury.io/js/remi-runner.svg)](http://badge.fury.io/js/remi-runner)
[![Coverage Status](https://coveralls.io/repos/remijs/remi-runner/badge.svg?branch=master&service=github)](https://coveralls.io/github/remijs/remi-runner?branch=master)


## Installation

```
npm install remi-runner
```


## Example Usage

``` js
const remi = require('remi')
const remiRunner = require('remi-runner')

const app = {}
const registrator = remi(app)

registrator.hook(remiRunner())

registrator.register([cbPlugin, promisePlugin, syncPlugin])

// a traditional plugin that uses an error-first-callback
// this will work w/o using the remi-runner
function cbPlugin(app, opts, next) {
  // ...
  next()
}

cbPlugin.attributes = { name: 'cbPlugin' }


// a plugin that returns a Promise. This type of plugin will be registered correctly
// only if remi is hooked with remi-runner
function promisePlugin(app, opts) {
  // ...
  return Promise.resolve()
}

cbPlugin.attributes = { name: 'promisePlugin' }


// a synchronous plugin. This type of plugin will be registered correctly
// only if remi is hooked with remi-runner
function syncPlugin(app, opts) {
  // ...
}

cbPlugin.attributes = { name: 'syncPlugin' }
```


## License

MIT © [Zoltan Kochan](https://www.kochan.io)

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