<commit_before>[![Build Status](https://secure.travis-ci.org/vesln/r...e.png)](http://travis-ci.org/vesln/r...e)

# r...e

Range implementation for Node.js

## Synopsis

```js
var range = require('r...e');
```

### Numeric range

```js
range(1, 3).toArray();

// => [1, 2, 3]
```

### Alpha range

```js
range('a', 'c').toArray();

// => ['a', 'b', 'c']
```

### Steps

```js
range(0, 10, 5).toArray();

// => [0, 5, 10]
```

### #include

```js
range(1, 3).include(2);

// => true

range(1, 3).include(4);

// => false
```

### #map

```js
range(1, 3).map(function(n) {
  return n;
});

// => [1, 2, 3]
```

### #each

```js
range(1, 3).each(function(n) {
  console.log(n);
});

// => 1
// => 2
// => 3
```

### #join

```js
range(1, 2).join('');
range(1, 2).join();

// => '12'
// => '1,2'
```

### #equal

```js
range(1, 2).equal(range(1, 2));
range(1, 2, 1).equal(range(1, 2, 2));

// => true
// => false
```

### #sum

```js
range(1, 3).sum();

// => 6
```

## Installation

```
$ npm install r...e
```

## Requirements

- Node.js >= 0.6.0

## Tests

```
$ npm install
$ make test<commit_msg>min, max, step -> docs<commit_after>[![Build Status](https://secure.travis-ci.org/vesln/r...e.png)](http://travis-ci.org/vesln/r...e)

# r...e

Range implementation for Node.js

## Synopsis

```js
var range = require('r...e');
```

### Numeric range

```js
range(1, 3).toArray();

// => [1, 2, 3]
```

### Alpha range

```js
range('a', 'c').toArray();

// => ['a', 'b', 'c']
```

### Steps

```js
range(0, 10, 5).toArray();

// => [0, 5, 10]
```

### #include

```js
range(1, 3).include(2);

// => true

range(1, 3).include(4);

// => false
```

### #map

```js
range(1, 3).map(function(n) {
  return n;
});

// => [1, 2, 3]
```

### #each

```js
range(1, 3).each(function(n) {
  console.log(n);
});

// => 1
// => 2
// => 3
```

### #join

```js
range(1, 2).join('');
range(1, 2).join();

// => '12'
// => '1,2'
```

### #equal

```js
range(1, 2).equal(range(1, 2));
range(1, 2, 1).equal(range(1, 2, 2));

// => true
// => false
```

### #sum

```js
range(1, 3).sum();

// => 6
```

### #min

```js
range().min(1);
range().min();

// => 1
```

### #max

```js
range().max(3);
range().max();

// => 3
```

### #step

```js
range().step(1);
range().step();

// => 1
```

## Installation

```
$ npm install r...e
```

## Requirements

- Node.js >= 0.6.0

## Tests

```
$ npm install
$ make test
{'fraction_non_alphanumeric': 0.339891167852658, 'fraction_numerical': 0.04688154039347007, 'mean_word_length': 2.8925081433224755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2576622', 'n_tokens_mistral': 1203, 'n_tokens_neox': 1078, 'n_words': 213}