<commit_before># major-versions [![Build Status](https://travis-ci.org/bendrucker/major-versions.svg?branch=master)](https://travis-ci.org/bendrucker/major-versions)

> Get all the major versions within a semver range

## Installing

```sh
$ npm install --save major-versions
```

## Usage

```js
var majors = require('major-versions')
majors('>=2 <5') // => ['2', '3', '4', '5']
majors('>=2 <5 || 10') // => ['2', '3', '4', '5', '10']
majors('<2 >5') // => []
```

## API

#### `majors(range, [maximum])` -> `array[string]`

##### range

*Required*  
Type: `string`

A semver range.

##### maximum

Type: `string`

A maximum to apply. An exception will be throw for an unbounded range (e.g. `'>5'`) if no maximum is provided. The maximum must lie within the range. Most times you'll query a package registry for a specific version (e.g. latest) and use it as the maximum.

```js
majors('>=2', '4.1.2', ['2', '3', '4'])
```
<commit_msg>Fix readme mistakes<commit_after># major-versions [![Build Status](https://travis-ci.org/bendrucker/major-versions.svg?branch=master)](https://travis-ci.org/bendrucker/major-versions)

> Get all the major versions within a semver range

## Installing

```sh
$ npm install --save major-versions
```

## Usage

```js
var majors = require('major-versions')
majors('>=2 <5') // => ['2', '3', '4']
majors('>=2 <5 || 10') // => ['2', '3', '4', '10']
majors('<2 >5') // => []
```

## API

#### `majors(range, [maximum])` -> `array[string]`

##### range

*Required*  
Type: `string`

A semver range.

##### maximum

Type: `string`

A maximum to apply. An exception will be thrown for an unbounded range (e.g. `'>5'`) if no maximum is provided. The maximum must lie within the range. Most times you'll query a package registry for a specific version (e.g. latest) and use it as the maximum.

```js
majors('>=2', '4.1.2', ['2', '3', '4'])
```

{'fraction_non_alphanumeric': 0.22043873729266988, 'fraction_numerical': 0.02675227394328518, 'mean_word_length': 4.151515151515151, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, 'https://': 4, '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': '3240898', 'n_tokens_mistral': 702, 'n_tokens_neox': 667, 'n_words': 212}