<commit_before># Application Core

Application core source code.

## Getting Started
Install the module with: `npm install application-core`

## Documentation

* `module`:
```js
module.exports.init = function(app, config){

};
```

## Examples
See examples dir.

## License
Copyright (c) 2016 goliatone  
Licensed under the MIT license.
<commit_msg>wip docs<commit_after># Application Core

Application core source code.

## Getting Started
Install the module with: `npm install application-core`

## Documentation

### Modules
Modules follow a simple convention, they should export an init function that takes two arguments, an instance of `app-core` and a configuration object.
Your module does not need to return anything, but if it does it should be either an object or a Promise.
If you return an object, you then will be able to access it through the application instance- `app[moduleName]`.
If you return a `Promise` instance, then once it resolves the process is the same.

Once the module is registered, the app instance will emit an event: `moduleName + '.' + config.app.registerReadyEvent`, in the case for the core logger module and using the default value for `registerReadyEvent` the event type would be `logger.registered`.

Once all core plugins are loaded, the application emits the event `coreplugins.ready`.

The modules instantiation follows a simple registration process.

* `module`:
```js
module.exports.init = function(app, config){

};
```


## Examples
See examples dir.

## License
Copyright (c) 2016 goliatone  
Licensed under the MIT license.

{'fraction_non_alphanumeric': 0.08015267175572519, 'fraction_numerical': 0.005089058524173028, 'mean_word_length': 4.699275362318841, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7402953', 'n_tokens_mistral': 429, 'n_tokens_neox': 406, 'n_words': 206}