<commit_before># latlon-formatter

[![NPM Version](https://badge.fury.io/js/latlon-formatter.svg)](https://badge.fury.io/js/merge-professor)
[![Build Status](https://travis-ci.org/solarpatrol/latlon-formatter.svg?branch=dev)](https://travis-ci.org/solarpatrol/latlon-formatter)
[![Coverage Status](https://coveralls.io/repos/github/solarpatrol/latlon-formatter/badge.svg)](https://coveralls.io/github/solarpatrol/latlon-formatter)

A set of functions to format latitude and longitude angles.

## Installation

```bash
npm install latlon-formatter --save
```
    
## Usage

- require with Node.js:

    ```javascript
    var merge = require('latlon-formatter');
    ```

- in browser include `dist/formatter.js` or `dist/formatter.min.js` script:

    ```javascript
    var formatter = window.latlonFormatter;
    ```
    
and then

```javascript    
var latitude = formatter.latitude(Math.PI / 3);
var longitude = formatter.longitude(33.4, true);
```

## Examples

// TODO
                                        
## Building

In order to build library run:
                                          
    npm run build
    
## Testing
    
Run unit tests:
    
    npm test
    
In order to run tests with [Coveralls](http://coveralls.io) locally you have to provide `COVERALLS_REPO_TOKEN`:
    
    COVERALLS_REPO_TOKEN=<token> npm run test:coverage
    
## Contribution
    
Before making a pull request, please, be sure that your changes are rebased to `dev` branch.

## License

[MIT](LICENSE)<commit_msg>Usage section is fixed.<commit_after># latlon-formatter

[![NPM Version](https://badge.fury.io/js/latlon-formatter.svg)](https://badge.fury.io/js/merge-professor)
[![Build Status](https://travis-ci.org/solarpatrol/latlon-formatter.svg?branch=dev)](https://travis-ci.org/solarpatrol/latlon-formatter)
[![Coverage Status](https://coveralls.io/repos/github/solarpatrol/latlon-formatter/badge.svg)](https://coveralls.io/github/solarpatrol/latlon-formatter)

A set of functions to format latitude and longitude angles.

## Installation

```bash
npm install latlon-formatter --save
```
    
## Usage

- require with Node.js:

    ```javascript
    var formatter = require('latlon-formatter');
    ```

- in browser include `dist/formatter.js` or `dist/formatter.min.js` script:

    ```javascript
    var formatter = window.latlonFormatter;
    ```
    
and then

```javascript    
var latitude = formatter.latitude(Math.PI / 3);     // => 60° 00′ 00″ N 
var longitude = formatter.longitude(-33.4, true);   // => 034° 24′ 00″ W
```
                                        
## Building

In order to build library run:
                                          
    npm run build
    
## Testing
    
Run unit tests:
    
    npm test
    
In order to run tests with [Coveralls](http://coveralls.io) locally you have to provide `COVERALLS_REPO_TOKEN`:
    
    COVERALLS_REPO_TOKEN=<token> npm run test:coverage
    
## Contribution
    
Before making a pull request, please, be sure that your changes are rebased to `dev` branch.

## License

[MIT](LICENSE)
{'fraction_non_alphanumeric': 0.13141549525988885, 'fraction_numerical': 0.006864988558352402, 'mean_word_length': 2.8980891719745223, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5116351', 'n_tokens_mistral': 1027, 'n_tokens_neox': 941, 'n_words': 224}