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

> Simple and customizable command line loading indicator.

<sup>Works also on [PhantomJS](http://phantomjs.org) enviroment.</sup>

## Install

```sh
$ npm install loading-indicator --save
```

## Usage

```javascript
var LoadingIndicator = require('loading-indicator');
var spin = new LoadingIndicator();

spin.start();
```

## API

### `new LoadingIndicator([options])`

### `options`

Type: `object`  

Available options.

#### `options.preset`

Type: `string`  <commit_msg>Ditched PhantomJS support.<commit_after># loading-indicator [![Build Status](https://travis-ci.org/rafaelrinaldi/loading-indicator.svg?branch=master)](https://travis-ci.org/rafaelrinaldi/loading-indicator)

> Simple and customizable command line loading indicator.

## Install

```sh
$ npm install loading-indicator --save
```

## Usage

```javascript
var LoadingIndicator = require('loading-indicator');
var spin = new LoadingIndicator();

spin.start();
```

## API

### `new LoadingIndicator([options])`

### `options`

Type: `object`  

Available options.

#### `options.preset`

Type: `string`  
{'fraction_non_alphanumeric': 0.17104216388225935, 'fraction_numerical': 0.0, 'mean_word_length': 5.4512820512820515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1804608', 'n_tokens_mistral': 422, 'n_tokens_neox': 408, 'n_words': 83}