# jsverify-array-range

> 'jsc.array()' with min/max options.

Latest version **0.1.0** (published 2017-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsverify-array-range
pnpm add jsverify-array-range
yarn add jsverify-array-range
bun add jsverify-array-range
```

## 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.1.0 |
| Published | 2017-04-27 |
| First published | 2017-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Redwood EDA |
| Maintainers | codelenny |

## Links

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

## Recent versions

- 0.1.0 (latest) — 2017-04-27

## README

# JSVerify Array Range

[![NPM Package][NPM_VERSION_IMG]][NPM_LINK]
[![Build Status][TRAVIS_IMAGE]][TRAVIS_LINK]

`jsc.array()` with min/max options.

## Installation

Install `jsverify-array-range` via NPM.  You must also have `jsverify` installed in your project.

```bash
npm install --save-dev jsverify-array-range jsverify
```

## Usage

```js
const jsc = require("jsverify");
const arrayRange = require("jsverify-array-range");

jsc.property("Random Array Lengths", arrayRange(jsc.number), (arr) => {
  // arrayRange(arb) works like jsc.array(arb)
});

jsc.property("Short Arrays", arrayRange(jsc.number, 5), (arr) => {
  // `arrayRange(arb, max)` will have between 0 and `max` entries (inclusive)
  return arr.length >= 0 && arr.length <= 5;
});

jsc.property("Medium Arrays", arrayRange(jsc.number, 5, 10), (arr) => {
  // `arrayRange(arb, min, max)` will have between `min` and `max` entries (inclusive)
  return arr.length >= 5 && arr.length <= 10;
});
```

[NPM_VERSION_IMG]: https://img.shields.io/npm/v/jsverify-array-range.svg
[NPM_LINK]: https://www.npmjs.com/package/jsverify-array-range
[TRAVIS_IMAGE]: https://travis-ci.org/rweda/jsverify-array-range.svg?branch=master
[TRAVIS_LINK]: https://travis-ci.org/rweda/jsverify-array-range

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