<commit_before># number-masker

A simple module for masking numeric values.

[![Build Status](https://travis-ci.org/dlukanin/number-replacer.svg?branch=master)](https://travis-ci.org/dlukanin/number-replacer)

## Usage
Pass the value you want to replace symbols in to the `replacer` function. The function takes two arguments: a value itself and an option hash.
The options are:
* replaceCount -- amount of digits to replace. Defaults to 3.
* replaceSymbol -- symbol to replace digits with. Defaults to '*'.
* numberDotSymbol -- symbol used to divide integer and fraction digits. Defaults to '.'.

## Examples
```
const replace = require('number-masker).replace;

replace(123456) === '***456'; // true
replace(12345e-3) === '****45'; // true
replace(123.456) === '****56'; //true
replace('123,456', {
    replaceCount: 4,
    replaceSymbol: '?',
    numberDotSymbol: ','
}) === '?????56'; // true
```<commit_msg>added license<commit_after># number-masker

A simple module for masking numeric values.

[![Build Status](https://travis-ci.org/dlukanin/number-replacer.svg?branch=master)](https://travis-ci.org/dlukanin/number-replacer)

## Usage
Pass the value you want to replace symbols in to the `replacer` function. The function takes two arguments: a value itself and an option hash.
The options are:
* replaceCount -- amount of digits to replace. Defaults to 3.
* replaceSymbol -- symbol to replace digits with. Defaults to '*'.
* numberDotSymbol -- symbol used to divide integer and fraction digits. Defaults to '.'.

## Examples
```
const replace = require('number-masker).replace;

replace(123456) === '***456'; // true
replace(12345e-3) === '****45'; // true
replace(123.456) === '****56'; //true
replace('123,456', {
    replaceCount: 4,
    replaceSymbol: '?',
    numberDotSymbol: ','
}) === '?????56'; // true
```

## License (MIT)
https://github.com/dlukanin/number-masker/blob/master/LICENSE
{'fraction_non_alphanumeric': 0.16806722689075632, 'fraction_numerical': 0.03676470588235294, 'mean_word_length': 4.291666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3884118', 'n_tokens_mistral': 651, 'n_tokens_neox': 586, 'n_words': 180}