# line-observable-rxjs

> Convert an input stream to observable of lines

Latest version **0.0.3** (published 2020-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install line-observable-rxjs
pnpm add line-observable-rxjs
yarn add line-observable-rxjs
bun add line-observable-rxjs
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-08-26 |
| First published | 2020-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Hoàng Văn Khải |
| Maintainers | khai96_ |
| Keywords | lines, newlines, characters |

## Links

- npm: https://www.npmjs.com/package/line-observable-rxjs
- Repository: https://github.com/ksxnodeapps/fun-little-utilities
- Homepage: https://ksxnodeapps.github.io/fun-little-utilities/
- Issues: https://github.com/ksxnodeapps/fun-little-utilities/issues
- npm.io page: https://npm.io/package/line-observable-rxjs

## Dependencies (3)

- [rxjs](https://npm.io/package/rxjs.md) ^6.6.2
- [tslib](https://npm.io/package/tslib.md) ^2.0.1
- [@types/node](https://npm.io/package/@types/node.md) ^14.6.0

## Recent versions

- 0.0.3 (latest) — 2020-08-26
- 0.0.2 — 2020-04-04
- 0.0.1 — 2020-02-27
- 0.0.0 — 2020-02-11

## README

# Line Observable RxJs

Convert an input stream to observable of lines

## Usage Example

We have the following script:

```javascript
// script.js
const { getLinesFromStream } = require('line-observable-rxjs')
getLinesFromStream(process.stdin).subscribe({
  next: line => console.log('line>', line.trim()),
  complete: () => console.log('done.')
})
```

Run the script:

```sh
printf 'abc\ndef\nghi' | node script.js
```

Expected Output:

```
line> abc
line> def
line> ghi
done.
```

## License

[MIT](https://git.io/fxKXN) © [Hoàng Văn Khải](https://github.com/KSXGitHub)

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