<commit_before>sh
==

Using Proxies & Generators to run shell commands.

Uses `node v0.11.x` with  `--harmony-proxies --harmony-generators` flags, along with 

* [co](https://github.com/visionmedia/co)
* [thunkify](https://github.com/visionmedia/node-thunkify)
* [co-read](https://github.com/juliangruber/co-read)


## Install

Use [n](https://github.com/visionmedia/n) to install node v0.11.x
    
    n 0.11.13

## Usage

```javascript
var co = require('co');
var read = require('co-read');
var sh = require('co-sh');

co(function *(){
  var ls = yield sh.ls();

  var buf;
  while (buf = yield read(tail.stdout)) {
    console.log(buf.toString());
  }

  try {
    yield sh.nonexistingcmd();
  } catch(e){
  }
})();
```

Assuming the above code is in a file called `test.js` run it using;

    node --harmony-proxies --harmony--generators index.js

## LICENCE

MIT<commit_msg>fix the test file name<commit_after>sh
==

Using Proxies & Generators to run shell commands.

Uses `node v0.11.x` with  `--harmony-proxies --harmony-generators` flags, along with 

* [co](https://github.com/visionmedia/co)
* [thunkify](https://github.com/visionmedia/node-thunkify)
* [co-read](https://github.com/juliangruber/co-read)


## Install

Use [n](https://github.com/visionmedia/n) to install node v0.11.x
    
    n 0.11.13

## Usage

```javascript
var co = require('co');
var read = require('co-read');
var sh = require('co-sh');

co(function *(){
  var ls = yield sh.ls();

  var buf;
  while (buf = yield read(tail.stdout)) {
    console.log(buf.toString());
  }

  try {
    yield sh.nonexistingcmd();
  } catch(e){
  }
})();
```

Assuming the above code is in a file called `test.js` run it using;

    node --harmony-proxies --harmony--generators test.js

See the examples folder for more

## LICENCE

MIT
{'fraction_non_alphanumeric': 0.17222222222222222, 'fraction_numerical': 0.012222222222222223, 'mean_word_length': 3.392682926829268, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '847208', 'n_tokens_mistral': 689, 'n_tokens_neox': 658, 'n_words': 159}