<commit_before>firefox-get
=====
Grab specific firefox package URLs

* Only supports linux at the moment
* Needs more tests

## Installation

`npm install firefox-get`

## Method

### get(version, [options], [callback])

`version` can be a number (`20`) or a string (`18.0b2`), or a channel version such as `release`, `beta`, `aurora` and `nightly`. Returns a promise, or can pass in a callback, which has an `err` and `value` argument signature.

#### options

* `os`: Operating system. Currently only `linux-x86_64` (default) and `linux-i686`
* `language`: Any of the supported language codes. `en-US` is default.

## Examples

```javascript
var get = require('firefox-get');

get('16.0.2').then(function (url) {
  console.log(url); // http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/16.0.2/linux-x86_64/en-US/firefox-16.0.2.tar.bz2
});

get('nightly').then(function (url) {
  console.log(url); // http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk-firefox-24.0a.en-US.linux-x86_64.tar.bz2
})

// Using options
get('release', { os: 'linux-i686', language: 'es-ES' }).then(function (url) {
  console.log(url); // http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/linux-i686/es-ES/firefox-21.0.tar.bz2
});

// Using callbacks
get('notaversion', function (err) {
  // err on response
});

get('18.0b2', function (err, url) {
  // URL returned
});<commit_msg>Update docs<commit_after>firefox-get
=====
Grab specific firefox package URLs

* Only supports linux at the moment
* Needs more tests

## Installation

`npm install firefox-get`

## Method

### get(version, [options], [callback])

`version` can be a number (`20`) or a string (`'18.0b2'`), or a channel version such as `'release'`, `'beta'`, `'aurora'` and `'nightly'`. Returns a promise, or can pass in a callback, which has an `err` and `value` argument signature.

#### options

* `os`: Operating system. Currently only `linux-x86_64` (default) and `linux-i686`
* `language`: Any of the supported language codes. `en-US` is default.

## Examples

```javascript
var get = require('firefox-get');

get('16.0.2').then(function (url) {
  console.log(url); // http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/16.0.2/linux-x86_64/en-US/firefox-16.0.2.tar.bz2
});

get('nightly').then(function (url) {
  console.log(url); // http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-24.0a1.en-US.linux-x86_64.tar.bz2
})

// Using options
get('release', { os: 'linux-i686', language: 'es-ES' }).then(function (url) {
  console.log(url); // http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/linux-i686/es-ES/firefox-21.0.tar.bz2
});

// Using callbacks
get('notaversion', function (err) {
  // err on response
});

get('18.0b2', function (err, url) {
  // URL returned
});
{'fraction_non_alphanumeric': 0.1881508078994614, 'fraction_numerical': 0.03770197486535009, 'mean_word_length': 4.159259259259259, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4251766', 'n_tokens_mistral': 1092, 'n_tokens_neox': 994, 'n_words': 239}