<commit_before>convert-base
============

Convert from one base to another: Hex, Binary, Decimal, Octal<commit_msg>documentation added<commit_after># convert-base [![Build Status](https://travis-ci.org/pasangsherpa/convert-base.svg?branch=master)](https://travis-ci.org/pasangsherpa/convert-base)

> Convert from one base to another: Hex, Binary, Decimal, Octal

## Install

Download the [production version][min] or the [development version][max].

[min]: https://raw.githubusercontent.com/pasangsherpa/convert-base/master/dist/convert-base.min.js
[max]: https://raw.githubusercontent.com/pasangsherpa/convert-base/master/dist/convert-base.js

```sh
$ npm install --save convert-base
```

```sh
$ bower install --save convert-base
```


## Usage

```js
var ConvertBase = require('convert-base');
var converter = new ConvertBase();
converter.convert(1);


```
```js
<script type="text/javascript" src="https://raw.githubusercontent.com/pasangsherpa/convert-base/master/dist/convert-base.min.js"></script>
<script type="text/javascript"> 
  	var converter = new ConvertBase();
	converter.convert(1);

</script>
```


## Documentation

### ConvertBase()

Creates an instance of the converter.


### Methods

#### .convert(number, from, to)

Converts a number from one base to another.

##### number

Type: `int`

the number to be converted.

##### from

Type: `int`

the base to be converted from.

##### to

Type: `int`

the base to be converted to.


## License

[MIT](http://opensource.org/licenses/MIT) © [<NAME>](https://github.com/pasangsherpa)
{'fraction_non_alphanumeric': 0.17183462532299743, 'fraction_numerical': 0.0012919896640826874, 'mean_word_length': 4.889733840304182, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1706234', 'n_tokens_mistral': 526, 'n_tokens_neox': 496, 'n_words': 120}