# callbag-skip

> Callbag operator that skips the first N data points of a source

Latest version **1.1.0** (published 2019-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install callbag-skip
pnpm add callbag-skip
yarn add callbag-skip
bun add callbag-skip
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-02-09 |
| First published | 2018-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | staltz.com |
| Maintainers | staltz, zimme |
| Keywords | callbag |

## Links

- npm: https://www.npmjs.com/package/callbag-skip
- Repository: https://github.com/staltz/callbag-skip
- Homepage: https://github.com/staltz/callbag-skip#readme
- Issues: https://github.com/staltz/callbag-skip/issues
- npm.io page: https://npm.io/package/callbag-skip

## Dependencies (1)

- [callbag](https://npm.io/package/callbag.md) ^1.1.0

## Recent versions

- 1.1.0 (latest) — 2019-02-09
- 1.0.0 — 2018-01-30

## README

# callbag-skip

Callbag operator that skips the first N data points of a source. Works on either pullable and listenable sources.

`npm install callbag-skip`

## example

On a listenable source:

```js
const interval = require('callbag-interval');
const observe = require('callbag-observe');
const skip = require('callbag-skip');

const source = skip(3)(interval(1000));

source(0, observe(x => console.log(x))); // 3
                                         // 4
                                         // 5
                                         // 6
					 // ...
```

On a pullable source:

```js
const fromIter = require('callbag-from-iter');
const iterate = require('callbag-iterate');
const skip = require('callbag-skip');

function* range(from, to) {
  let i = from;
  while (i <= to) {
    yield i;
    i++;
  }
}

const source = skip(4)(fromIter(range(10, 20)));

source(0, iterate(x => console.log(x))); // 14
                                         // 15
                                         // 16
                                         // 17
                                         // 18
                                         // 19
                                         // 20
```

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