# regexp-stream

> Streaming regex matching

Latest version **0.0.3** (published 2016-06-02) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install regexp-stream
pnpm add regexp-stream
yarn add regexp-stream
bun add regexp-stream
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-06-02 |
| First published | 2016-06-02 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | stigok |
| Maintainers | stigok |
| Keywords | regex, regexp, stream, stdin, pipe |

## Links

- npm: https://www.npmjs.com/package/regexp-stream
- Repository: https://github.com/stigok/regexp-stream
- Homepage: https://github.com/stigok/regexp-stream#readme
- Issues: https://github.com/stigok/regexp-stream/issues
- npm.io page: https://npm.io/package/regexp-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

- 0.0.3 (latest) — 2016-06-02

## README

# regexp-stream

## Install

    npm i regexp-stream

## Usage

    const split = require('split');

    // Outputs all lines starting with a word
    const pattern = '^(\\w+)';
    const flags = '';
    const regex = new RegexpStream(pattern, flags);
    process.stdin
      .pipe(split()) // split on newlines
      .pipe(regex)
      .pipe(process.stdout);

Constructor params are passed directly to [`new RegExp(pattern[, flags])`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp).

See more examples in [./examples]().

## Contribute

Please do! If you have an idea, please post an issue. If you did something with your idea, please post a PR.

## Todo

  - Accept regex type param

## License

CC0-1.0

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