<commit_before># rbac-core

[![npm version][npm-badge]][npm-url]
[![Build Status][travis-badge]][travis-url]
[![Coverage Status][coveralls-badge]][coveralls-url]
[![Dependency Status][david-badge]][david-url]

> The RBAC core from hapi-rbac

> This is inspired by the [XACML](https://en.wikipedia.org/wiki/XACML) policies.

## Version 1.0.0

See [Release Notes](https://github.com/franciscogouveia/rbac-core/issues/12).

## How to use it

First, install

```
npm install --save rbac-core
```

Import it to your project

```js
const Rbac = require('rbac-core');
const DataRetrievalRouter = Rbac.DataRetrievalRouter;
```

Create your data sources in the data retrieval router

```js
const dataRetrieverRouter = new DataRetrievalRouter();
<commit_msg>Added release notes for version 2.0.0 to documentation<commit_after># rbac-core

[![npm version][npm-badge]][npm-url]
[![Build Status][travis-badge]][travis-url]
[![Coverage Status][coveralls-badge]][coveralls-url]
[![Dependency Status][david-badge]][david-url]

> The RBAC core from hapi-rbac

> This is inspired by the [XACML](https://en.wikipedia.org/wiki/XACML) policies.

## Versions

* `1.0.0` [Release Notes](https://github.com/franciscogouveia/rbac-core/issues/12)
* `2.0.0` [Release Notes](https://github.com/franciscogouveia/rbac-core/issues/15)

## How to use it

First, install

```
npm install --save rbac-core
```

Import it to your project

```js
const Rbac = require('rbac-core');
const DataRetrievalRouter = Rbac.DataRetrievalRouter;
```

Create your data sources in the data retrieval router

```js
const dataRetrieverRouter = new DataRetrievalRouter();

{'fraction_non_alphanumeric': 0.1580246913580247, 'fraction_numerical': 0.011111111111111112, 'mean_word_length': 5.258687258687258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 5, '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': '548166', 'n_tokens_mistral': 614, 'n_tokens_neox': 588, 'n_words': 135}