# last-record-stream

> only passes the last record of a stream on

Latest version **1.0.4** (published 2016-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install last-record-stream
pnpm add last-record-stream
yarn add last-record-stream
bun add last-record-stream
```

## 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.0.4 |
| Published | 2016-01-24 |
| First published | 2016-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Chase Miller |
| Maintainers | chmille4 |
| Keywords | split, stream, last record |

## Links

- npm: https://www.npmjs.com/package/last-record-stream
- npm.io page: https://npm.io/package/last-record-stream

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2016-01-24
- 1.0.3 — 2016-01-24
- 1.0.2 — 2016-01-20
- 1.0.1 — 2016-01-19
- 1.0.0 — 2016-01-19

## README

# last-record-stream

splits a string and keeps only the last record as defined by a separator.

## usage


```JavaScript
// somestream contains "1\n2\n3"

var lr = require('last-record-stream')();

somestream.pipe(lr).pipe(process.stdout);

// $> 3
```

## options
separator - used to split the stream into records. Default is "\n"

```JavaScript
var lr = require('last-record-stream')({ separator: "\t" });

somestream.pipe(lr).pipe(process.stdout);
```

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