# callbag-range

> Callbag source that generates a range of numbers

Latest version **3.0.0** (published 2018-11-15) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2018-11-15 |
| First published | 2018-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Francisco Tavares de Lima Neto |
| Maintainers | francisco.tln |
| Keywords | callbag |

## Links

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

## Dependencies (1)

- [callbag-from-iter](https://npm.io/package/callbag-from-iter.md) ^1.2.0

## Recent versions

- 3.0.0 (latest) — 2018-11-15
- 2.0.1 — 2018-11-14
- 2.0.0 — 2018-06-17
- 1.1.0 — 2018-04-24
- 1.0.1 — 2018-04-23
- 1.0.0 — 2018-04-23

## README

# callbag-range

Callbag source that creates a range of numbers `from: number` (inclusive) `to: number` (inclusive).
An optional step can be passed as 3rd argument (1 by default).

`npm install callbag-range`

## Examples

### Generate the English alphabet
```js
const { forEach, map, pipe } = require('callbag-basics');
const range = require('callbag-range');

pipe(
  range(97, 122),
  map(String.fromCharCode),
  forEach((v) => {
    console.log(v); // a, b, c, ..., z
  })
);
```

### Decreasing range from 10 to 0
```js
const { forEach, pipe } = require('callbag-basics');
const range = require('callbag-range');

pipe(
  range(10, 0, -1),
  forEach((v) => {
    console.log(v); // 10, 9, 8, ..., 0
  })
);
```

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