# loopback-phase

> Hook into a LoopBack application's phases

Latest version **3.4.0** (published 2020-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install loopback-phase
pnpm add loopback-phase
yarn add loopback-phase
bun add loopback-phase
```

## 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 | 3.4.0 |
| Published | 2020-03-06 |
| First published | 2014-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.9 |
| Dependencies | 3 |
| Unpacked size | 52.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | IBM Corp. |
| Maintainers | bajtos, dhmlau, emonddr, hacksparrow, jannyhou2016, rfeng, rmg |
| Keywords | StrongLoop, LoopBack, Hook, Phase |

## Links

- npm: https://www.npmjs.com/package/loopback-phase
- Repository: https://github.com/strongloop/loopback-phase
- Homepage: https://github.com/strongloop/loopback-phase#readme
- Issues: https://github.com/strongloop/loopback-phase/issues
- npm.io page: https://npm.io/package/loopback-phase

## Dependencies (3)

- [async](https://npm.io/package/async.md) ^2.6.1
- [debug](https://npm.io/package/debug.md) ^3.1.0
- [strong-globalize](https://npm.io/package/strong-globalize.md) ^4.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.4.0 (latest) — 2020-03-06
- 3.3.0 — 2018-07-10
- 3.2.0 — 2018-06-12
- 3.1.0 — 2017-10-13
- 3.0.0 — 2016-12-21
- 1.4.1 — 2016-10-07
- 1.4.0 — 2016-09-05
- 1.3.1 — 2016-05-06
- 1.3.0 — 2016-02-01
- 1.2.0 — 2014-12-11
- 1.1.0 — 2014-11-13
- 1.0.1 — 2014-11-07
- 1.0.0 — 2014-10-22

## README

# LoopBack Phase

**⚠️ LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical
security fixes will be provided. (See
[Module Long Term Support Policy](#module-long-term-support-policy) below.)**

We urge all LoopBack 3 users to migrate their applications to LoopBack 4 as
soon as possible. Refer to our
[Migration Guide](https://loopback.io/doc/en/lb4/migration-overview.html)
for more information on how to upgrade.

## Overview

Hook into the various phases of a LoopBack application.

## Installation

    npm install loopback-phase

## Usage

```js
var PhaseList = require('loopback-phase').PhaseList;
var phases = new PhaseList();
phases.add('first');
phases.add('second');
phases.add('third');

var first = phases.find('first');
var second = phases.find('second');

first.use(function(ctx, cb) {
  console.log('this is the first phase!');
  cb();
});

second.use(function(ctx, cb) {
  console.log('this is the second phase!');
  cb();
});

phases.run(ctx);
```

See [API docs](http://apidocs.strongloop.com/loopback-phase/) for
complete API reference.

## License

[MIT](LICENSE).

## Module Long Term Support Policy

This module adopts the [Module Long Term Support (LTS)](http://github.com/CloudNativeJS/ModuleLTS) policy, with the following End Of Life (EOL) dates:

| Version | Status          | Published | EOL      |
| ------- | --------------- | --------- | -------- |
| 3.x     | Maintenance LTS | Dec 2016  | Dec 2020 |
| 1.x     | End-of-Life     | Oct 2014  | Apr 2019 |

Learn more about our LTS plan in the [docs](https://loopback.io/doc/en/contrib/Long-term-support.html).

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