# node-interval-stream

> Minimal NodeJS readable stream based on intervals

Latest version **1.0.1** (published 2017-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-interval-stream
pnpm add node-interval-stream
yarn add node-interval-stream
bun add node-interval-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.1 |
| Published | 2017-09-18 |
| First published | 2015-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Julien Bouquillon |
| Maintainers | revolunet |
| Keywords | node, stream, interval, delay |

## Links

- npm: https://www.npmjs.com/package/node-interval-stream
- Repository: https://github.com/revolunet/node-interval-stream
- Homepage: https://github.com/revolunet/node-interval-stream#readme
- Issues: https://github.com/revolunet/node-interval-stream/issues
- npm.io page: https://npm.io/package/node-interval-stream

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-09-18
- 1.0.0 — 2015-12-25

## README

# node-interval-stream

![npm](https://img.shields.io/npm/v/node-interval-stream.svg) ![license](https://img.shields.io/npm/l/node-interval-stream.svg) ![github-issues](https://img.shields.io/github/issues/revolunet/node-interval-stream.svg) ![Circle CI build status](https://circleci.com/gh/revolunet/node-interval-stream.svg?style=svg)

Minimal NodeJS readable stream based on intervals

![nodei.co](https://nodei.co/npm/node-interval-stream.png?downloads=true&downloadRank=true&stars=true)

## QuickStart


```js

import getIntervalStream from 'node-interval-stream';

var stream = getIntervalStream({
    count: 10,  // iterations
    delay: 250  // ms
});

stream.on('data', data => {
    console.log(data);
}).on('end', () => {
    console.log('finished');
});
```

## Tests

```
  should receive 0 events in 0ms

    ✔ duration should be 0 < d < 250 and is 106
    ✔ should have 0 entries

  should receive 1 events in 100ms

    ✔ duration should be 100 < d < 250 and is 211
    ✔ should have 1 entries

  should receive 1 events in 10ms

    ✔ duration should be 10 < d < 250 and is 22
    ✔ should have 1 entries

  should receive 10 events in 1000ms

    ✔ duration should be 1000 < d < 1400 and is 1123
    ✔ should have 10 entries

  should receive 10 events in 100ms

    ✔ duration should be 100 < d < 400 and is 126
    ✔ should have 10 entries


  total:     10
  passing:   10
  duration:  2.4s

```



## Author

Julien Bouquillon <julien@bouquillon.com> http://github.com/revolunet

## License

 - **MIT** : http://opensource.org/licenses/MIT

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