<commit_before># Crispy Stream
[![Build Status](https://travis-ci.org/codingpains/crispy-stream.svg?branch=master)](https://travis-ci.org/codingpains/crispy-stream)
[![Code Climate](https://codeclimate.com/github/codingpains/crispy-stream/badges/gpa.svg)](https://codeclimate.com/github/codingpains/crispy-stream)
[![Test Coverage](https://codeclimate.com/github/codingpains/crispy-stream/badges/coverage.svg)](https://codeclimate.com/github/codingpains/crispy-stream/coverage)

Lets imagine you want to test how a lib you created behaves when using its 'stream-mode' and, of course you don't want to read and write from file system. So what should you do? Well you should use this package which is an implementation of [Stream](https://nodejs.org/api/stream.html#stream_api_for_stream_implementors).

Because this library implements [Node's Stream abstract interface](https://nodejs.org/api/stream.html) you can use it
as you would any other Stream implementation.

## Installation

```
 $ npm install crispy-stream<commit_msg>add npm badge to readme<commit_after># Crispy Stream
[![Build Status](https://travis-ci.org/codingpains/crispy-stream.svg?branch=master)](https://travis-ci.org/codingpains/crispy-stream)
[![Code Climate](https://codeclimate.com/github/codingpains/crispy-stream/badges/gpa.svg)](https://codeclimate.com/github/codingpains/crispy-stream)
[![Test Coverage](https://codeclimate.com/github/codingpains/crispy-stream/badges/coverage.svg)](https://codeclimate.com/github/codingpains/crispy-stream/coverage)
[![NPM](https://nodei.co/npm/crispy-stream.png?mini=true)](https://npmjs.org/package/crispy-stream)

Lets imagine you want to test how a lib you created behaves when using its 'stream-mode' and, of course you don't want to read and write from file system. So what should you do? Well you should use this package which is an implementation of [Stream](https://nodejs.org/api/stream.html#stream_api_for_stream_implementors).

Because this library implements [Node's Stream abstract interface](https://nodejs.org/api/stream.html) you can use it
as you would any other Stream implementation.

## Installation

```
 $ npm install crispy-stream
{'fraction_non_alphanumeric': 0.13111726685133887, 'fraction_numerical': 0.0, 'mean_word_length': 5.708978328173375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, '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': '1929847', 'n_tokens_mistral': 708, 'n_tokens_neox': 676, 'n_words': 160}