# @frando/level-live

> Simple, light and correct LevelDB live read stream implementation

Latest version **1.1.0** (published 2020-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @frando/level-live
pnpm add @frando/level-live
yarn add @frando/level-live
bun add @frando/level-live
```

## 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.0 |
| Published | 2020-05-29 |
| First published | 2020-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | frando |

## Links

- npm: https://www.npmjs.com/package/@frando/level-live
- Repository: https://github.com/Frando/level-live
- Homepage: https://github.com/Frando/level-live#readme
- Issues: https://github.com/Frando/level-live/issues
- npm.io page: https://npm.io/package/@frando/level-live

## Dependencies (2)

- [ltgt](https://npm.io/package/ltgt.md) ^2.2.0
- [level-codec](https://npm.io/package/level-codec.md) ^9.0.1

## Recent versions

- 1.1.0 (latest) — 2020-05-29
- 1.0.1 — 2020-05-29

## README

# level-live

Simple, light and correct [LevelDB](https://github.com/level/level) live read stream implementation.

---

**Fork of [voltraco/level-live](https://github.com/voltraco/level-live) with two PRs applied: [#1](https://github.com/voltraco/level-live/pulls/1) and [#2](https://github.com/voltraco/level-live/pulls/2). Published to npm as `@frando/level-live`**

---

## Usage

```js
const stream = new Live(db, { gt: 'prefix' })

stream.on('data', ({ type, key, value }) => {
  // ...
})
```

## Installation

```bash
$ npm install level-live
```

## API

### stream = new Live(db[, opts])

`opts` can be a levelup style range object with any of those options:

- `gt`
- `gte`
- `lt`
- `lte`
- `start`
- `end`

Additional options are:
- `old` set to false to skip past entries and only listen live

### Event `sync`

Emitted once the live stream finished the past and caught up to the present.

## License

MIT

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