<commit_before># trim-off-newlines [![Build Status](https://travis-ci.org/stevemao/trim-off-newlines.svg?branch=master)](https://travis-ci.org/stevemao/trim-off-newlines)

> Similar to String#trim() but removes only newlines


## Install

```
$ npm install --save trim-off-newlines
```


## Usage

```js
var trimOffNewlines = require('trim-off-newlines');

trimOffNewlines('\n\nunicorns\n\n');
//=> 'nunicorns'
```


## License

MIT © [<NAME>](https://github.com/stevemao)<commit_msg>add related<commit_after># trim-off-newlines [![Build Status](https://travis-ci.org/stevemao/trim-off-newlines.svg?branch=master)](https://travis-ci.org/stevemao/trim-off-newlines)

> Similar to String#trim() but removes only newlines


## Install

```
$ npm install --save trim-off-newlines
```


## Usage

```js
var trimOffNewlines = require('trim-off-newlines');

trimOffNewlines('\n\nunicorns\n\n');
//=> 'nunicorns'
```


## Related

- [`trim-left`](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left
- [`trim-right`](https://github.com/sindresorhus/trim-right) - Similar to `String#trim()` but removes only whitespace on the right


## License

MIT © [<NAME>](https://github.com/stevemao)
{'fraction_non_alphanumeric': 0.1937046004842615, 'fraction_numerical': 0.0, 'mean_word_length': 4.767441860465116, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 8, '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': '698055', 'n_tokens_mistral': 468, 'n_tokens_neox': 449, 'n_words': 77}