<commit_before># trim-character [![Build Status](https://secure.travis-ci.org/danielhusar/trim-character.svg?branch=master)](http://travis-ci.org/danielhusar/trim-character)

Trim characters from the string.

## Install

```
npm install --save trim-character
```

## Example

```javascript
var trim = require('trim-character');
trim(',foo,bar,', ','); // foo,bar
trim.left(',foo,bar,', ','); // foo,bar,
trim.right(',foo,bar,', ','); // ,foo,bar
```

## Api

#### String

Type: `String`  
Default: ''

String to be trimmed.

#### Characters

Type: `String`  
Default: ''

Characters to trim.

#### RegExp flags (optional)

Type: `String`  
Default: 'g'

Regexp flags, `g` is always appended even if you dont specify it you parameter.

## License

MIT © [<NAME>](https://github.com/danielhusar)
<commit_msg>readme typo<commit_after># trim-character [![Build Status](https://secure.travis-ci.org/danielhusar/trim-character.svg?branch=master)](http://travis-ci.org/danielhusar/trim-character)

Trim characters from the string.

## Install

```
npm install --save trim-character
```

## Example

```javascript
var trim = require('trim-character');
trim(',foo,bar,', ','); // foo,bar
trim.left(',foo,bar,', ','); // foo,bar,
trim.right(',foo,bar,', ','); // ,foo,bar
```

## Api

#### String

Type: `String`  
Default: ''

String to be trimmed.

#### Characters

Type: `String`  
Default: ''

Characters to trim.

#### RegExp flags (optional)

Type: `String`  
Default: 'g'

Regexp flags, `g` is always appended even if you dont specify it in your parameter.

## License

MIT © [<NAME>](https://github.com/danielhusar)

{'fraction_non_alphanumeric': 0.20322180916976457, 'fraction_numerical': 0.0, 'mean_word_length': 4.511945392491468, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '1611839', 'n_tokens_mistral': 577, 'n_tokens_neox': 568, 'n_words': 134}