# ilp-compat-plugin

> Convert a Ledger Plugin Interface (LPI) version 1 plugin to LPIv2

Latest version **2.0.3** (published 2017-12-27) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ilp-compat-plugin
pnpm add ilp-compat-plugin
yarn add ilp-compat-plugin
bun add ilp-compat-plugin
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2017-12-27 |
| First published | 2017-12-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Interledger Team |
| Maintainers | interledger |
| Keywords | ilp, plugin, compat, compatibility, migrate, update, upgrade, convert, lpi1, lpi2, lpi, lpiv2 |

## Links

- npm: https://www.npmjs.com/package/ilp-compat-plugin
- Repository: https://github.com/justmoon/ilp-compat-plugin
- Homepage: https://github.com/justmoon/ilp-compat-plugin#readme
- Issues: https://github.com/justmoon/ilp-compat-plugin/issues
- npm.io page: https://npm.io/package/ilp-compat-plugin

## Dependencies (4)

- [uuid](https://npm.io/package/uuid.md) ^3.1.0
- [debug](https://npm.io/package/debug.md) ^3.1.0
- [oer-utils](https://npm.io/package/oer-utils.md) ^1.3.4
- [ilp-packet](https://npm.io/package/ilp-packet.md) ^2.1.0

## Recent versions

- 2.0.3 (latest) — 2017-12-27
- 2.0.1 — 2017-12-27
- 2.0.0 — 2017-12-27
- 1.0.0 — 2017-12-19

## README

# ilp-plugin-compat

> ILP plugin compatibility layer

Turns any LPI1 plugin into an LPI2 plugin.

## Usage

``` js
const compat = require('ilp-compat-plugin')

const Plugin = require('some-old-plugin')

const plugin = compat(new Plugin({ ... }))

console.log(plugin.constructor.version) // => 2

// Use LPI2
const { fulfillment, data } = await plugin.sendTransfer({ ... })

```

Note that it's safe to pass LPI2 plugins to compat, it will simply become a no-op.

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