<commit_before># Manta Config Engine

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
[![Code Climate](https://codeclimate.com/github/dodekeract/manta-config-engine/badges/gpa.svg)](https://codeclimate.com/github/dodekeract/manta-config-engine)
[![NPM Downloads](https://img.shields.io/npm/dm/dota2-manta-config-engine.svg)](https://npmjs.com/package/dota2-manta-config-engine)
[![NPM Dependencies](https://david-dm.org/dodekeract/manta-config-engine.png)](https://david-dm.org/dodekeract/manta-config-engine)
[![Code Documentation](https://inch-ci.org/github/dodekeract/manta-config-engine.svg)](https://inch-ci.org/github/dodekeract/manta-config-engine)

Dota 2 configuration builder. Compiles `JSON` to `autoexec`.

## CLI Installation
- Install [node.js](https://nodejs.org)
- Run `npm install -g dota2-manta-config-engine`.
- Execute `manta-config-engine path-to-preset`, where `path-to-preset` is a relative path.

Beware that the CLI will assume that your Dota 2 is installed in the default Steam location. Use `--path` to specify a different one.

## Library Installation
- Install [node.js](https://nodejs.org)
- Run `npm install -g dota2-manta-config-engine`
- Require manta in your code `var manta = require('dota2-manta-config-engine')`

## CLI options
- `--path=customPath` set a custom output path

## Library usage

### manta.compile(preset, callback)
- Expects a valid preset, see `prests/defaut.json`.
- Calls `callback` with `err` and `data`. Data is an object containing the `.cfg` filenames and their compiled data.

### manta.positions
- Returns an object with all camera positions manta currently uses
<commit_msg>added GUI notice to README<commit_after># Manta Config Engine

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
[![Code Climate](https://codeclimate.com/github/dodekeract/manta-config-engine/badges/gpa.svg)](https://codeclimate.com/github/dodekeract/manta-config-engine)
[![NPM Downloads](https://img.shields.io/npm/dm/dota2-manta-config-engine.svg)](https://npmjs.com/package/dota2-manta-config-engine)
[![NPM Dependencies](https://david-dm.org/dodekeract/manta-config-engine.png)](https://david-dm.org/dodekeract/manta-config-engine)
[![Code Documentation](https://inch-ci.org/github/dodekeract/manta-config-engine.svg)](https://inch-ci.org/github/dodekeract/manta-config-engine)

Dota 2 configuration builder. Compiles `JSON` to `autoexec`. There also is [a web-app](https://github.com/dodekeract/manta-config-engine-app) to easily create presets and build your own autoexec. The app [is hosted on my personal server](https://manta.dodekeract.report), so you don't have to set it up to use it.

## CLI Installation
- Install [node.js](https://nodejs.org)
- Run `npm install -g dota2-manta-config-engine`.
- Execute `manta-config-engine path-to-preset`, where `path-to-preset` is a relative path.

Beware that the CLI will assume that your Dota 2 is installed in the default Steam location. Use `--path` to specify a different one.

## Library Installation
- Install [node.js](https://nodejs.org)
- Run `npm install -g dota2-manta-config-engine`
- Require manta in your code `var manta = require('dota2-manta-config-engine')`

## CLI options
- `--path=customPath` set a custom output path

## Library usage

### manta.compile(preset, callback)
- Expects a valid preset, see `prests/defaut.json`.
- Calls `callback` with `err` and `data`. Data is an object containing the `.cfg` filenames and their compiled data.

### manta.positions
- Returns an object with all camera positions manta currently uses

{'fraction_non_alphanumeric': 0.1515068493150685, 'fraction_numerical': 0.0038356164383561643, 'mean_word_length': 4.678071539657854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 24, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1386201', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1219, 'n_words': 293}