# mozilla-toolkit-versioning

> Parser for Mozilla's toolkit version format

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

## Install

```sh
npm install mozilla-toolkit-versioning
pnpm add mozilla-toolkit-versioning
yarn add mozilla-toolkit-versioning
bun add mozilla-toolkit-versioning
```

## 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 | 2014-02-04 |
| Weekly downloads | 0 |
| License | MPL 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jordan Santell |
| Maintainers | jsantell |

## Links

- npm: https://www.npmjs.com/package/mozilla-toolkit-versioning
- Repository: https://github.com/jsantell/mozilla-toolkit-versioning
- Issues: https://github.com/jsantell/mozilla-toolkit-versioning/issues
- npm.io page: https://npm.io/package/mozilla-toolkit-versioning

## Recent versions

- 1.0.0 (latest) — 2015-04-21
- 0.0.2 — 2014-09-08
- 0.0.1 — 2014-02-04

## README

# mozilla-toolkit-versioning

[![Build Status](https://travis-ci.org/jsantell/mozilla-toolkit-versioning.png)](https://travis-ci.org/jsantell/mozilla-toolkit-versioning)

A node library to parse simple [node-semver](https://github.com/isaacs/node-semver/)-ish strings to generate a min and max version of Mozilla platform support using Mozilla's [toolkit version format](https://developer.mozilla.org/en-US/docs/Toolkit_version_format). For comparing versions, check out [mozilla-version-comparator](https://github.com/linagora/mozilla-version-comparator).

## API

### mozVersion.parse(s)

```javascript
var mozVersion = require('mozilla-toolkit-versioning');
var parsed = mozVersion.parse('>=3.6 <= 30.0');
parsed.min; // '3.6'
parsed.max; // '30.0'

var parsed = mozVersion.parse('>26');
parsed.min; // '26.1'
parsed.max; // undefined
```

## Ranges

* `1.2.3` - A specific version
* `>1.2.3` - Greater than a specific version
* `<1.2.3` - Less than a specific version (does not include pre-release)
* `>=1.2.3` - Greater than or equal to a specific version (does not include pre-release)
* `<=1.2.3` - Less than a specific version (DOES include pre-release)
* `>=1.2.3 <=2.3.4` - Between or equal to the range
* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`

## License

MPL 2.0 License, copyright (c) 2014 Jordan Santell

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