<commit_before># Stream-build

this package offers you convenience factory methods for the 4 base streams for simpler creation of custom streams.

## Usage

Core stream module is re-exported. So you can easy replace `require('stream')` with `require('stream-build')` and go on. Now you have for factory methods, which can be used to create custom streams:

```javascript
// Before
function MyReadable(opts){
  //this and that
}

util.inherit(MyReadable,Readable)

MyReadable._read() = function(size){
  //custom read code
}

var myReadable = new MyReadable()
```


```javascript
// after

var myReadable = streamBuild.readable( function(size){
  //custom read code
}, {/* optional options here*/})
```

## Install

`npm install stream-build`

## About Performance<commit_msg>typos<commit_after># Stream-build

this package offers you convenience factory methods for simpler creation of custom streams from the 4 base streams.

## Usage

Core stream module is re-exported. So you can easy replace `require('stream')` with `require('stream-build')` and go on. Now you have 4 factory methods which can be used to create custom streams:

```javascript
// Before
function MyReadable(opts){
  //this and that
}

util.inherit(MyReadable,Readable)

MyReadable.prototype._read = function(size){
  //custom read code
}

var myReadable = new MyReadable()
```


```javascript
// after

var myReadable = streamBuild.readable( function(size){
  //custom read code
}, {/* options here are passed to core constructors */})
```

## Install

`npm install stream-build`

## About Performance
{'fraction_non_alphanumeric': 0.11195928753180662, 'fraction_numerical': 0.0019083969465648854, 'mean_word_length': 4.480836236933798, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4680807', 'n_tokens_mistral': 460, 'n_tokens_neox': 440, 'n_words': 175}