# js-range

> A function to generate an array sequence of numbers from start to end.

Latest version **1.0.0** (published 2015-04-21) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-04-21 |
| First published | 2015-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Roman Liutikov |
| Maintainers | roman01la |
| Keywords | javascript, js, range |

## Links

- npm: https://www.npmjs.com/package/js-range
- Repository: https://github.com/roman01la/js-range
- Issues: https://github.com/roman01la/js-range/issues
- npm.io page: https://npm.io/package/js-range

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-04-21

## README

[![npm](https://img.shields.io/npm/v/js-range.svg)](https://www.npmjs.com/package/js-range)
[![Build Status](https://travis-ci.org/roman01la/js-range.svg?branch=master)](https://travis-ci.org/roman01la/js-range)

# js-range
A function to generate an array sequence of numbers from start (inclusive) to end
(exclusive), by step, where start and end defaults to 0, and step to 1. When start is equal to end, returns empty list.
Similar to [Clojure's range](https://clojuredocs.org/clojure.core/range), but without laziness.

## Installation

```
npm i -S js-range
```

## Usage

```es6
import range from 'js-range';

range(5, 8); // [5, 6, 7]
range(5, 10, 2); // [5, 7, 9]
range(10, 5); // [10, 9, 8, 7, 6]
range(3, -10, -3) // [3, 0, -3, -6, -9]
```

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