<commit_before># Fabric Plugin for Cordova > 3.0 (iOS and Android)

## Installation

1) Make sure that you have [Node](http://nodejs.org/) and [Cordova CLI](https://github.com/apache/cordova-cli) or [PhoneGap's CLI](https://github.com/mwbrooks/phonegap-cli) installed on your machine.

2) ***(Important)*** Add Fabric SDK to the Android / iOS project [Fabric.io](https://fabric.io)

3) Follow the steps to setup the SDK in your project.

4) Add a plugin to your project using Cordova CLI:

```bash
cordova plugin add https://github.com/sarriaroman/FabricPlugin
```

Or using PhoneGap CLI:

```bash
phonegap local plugin add https://github.com/sarriaroman/FabricPlugin
```

## Modules

- Core  
> This module is intended to contain the core and generic features

```
window.fabric.core
```

- Answers  
> This module contains the Crashlytics Answers API. This is not yet complete but has all the mayor features  
<commit_msg>Updated readme with new installation steps<commit_after># Fabric Plugin for Cordova > 3.0 (iOS and Android)

## Installation

1. Make sure that you have [Node](http://nodejs.org/) and [Cordova CLI](https://github.com/apache/cordova-cli) or [PhoneGap's CLI](https://github.com/mwbrooks/phonegap-cli) installed on your machine.
1. Setup your [Fabric.io](https://fabric.io) account and get your API Key and Build Secret from your [organization page](https://www.fabric.io/settings/organizations/).
1. Add a plugin to your project using Cordova CLI, specifying the keys with the `--variable` argument:

```bash
# Install from NPM registry:
cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx

# Or install directly from git:
cordova plugin add https://github.com/sarriaroman/FabricPlugin@x.x.x  --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx
```

## Modules

- Core  
> This module is intended to contain the core and generic features

```
window.fabric.core
```

- Answers  
> This module contains the Crashlytics Answers API. This is not yet complete but has all the mayor features  

{'fraction_non_alphanumeric': 0.11041465766634523, 'fraction_numerical': 0.005303760848601736, 'mean_word_length': 4.375647668393782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 1, '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': '3416665', 'n_tokens_mistral': 694, 'n_tokens_neox': 637, 'n_words': 232}