<commit_before># hoagie-exec

Make your hoagie program exec to another process

# Install

```
$ npm install hoagie-exec --save
```

# Usage

Simply `require('hoagie-exec')` in your program and the hoagie response stream will have an `exec` method. This method will replace the current process with the command you specify, so you can exit to top, pagers, whatever.

Internally, this is just [node-kexec][1]. h/t to [@jprichardson][2] for literally all the work.

``` js
var hoagie = require('hoagie');

require('hoagie-exec');

var app = hoagie();

app.use('top', function(req, res) {
	res.exec('top');
});

app.run([]);
```

## License

[ISC License][https://github.com/jeremyruppel/hoagie-exec/blob/master/LICENSE]

[1]: https://github.com/jprichardson/node-kexec
[2]: https://github.com/jprichardson
<commit_msg>God damn that's twice today<commit_after># hoagie-exec

Make your hoagie program exec to another process

# Install

```
$ npm install hoagie-exec --save
```

# Usage

Simply `require('hoagie-exec')` in your program and the hoagie response stream will have an `exec` method. This method will replace the current process with the command you specify, so you can exit to top, pagers, whatever.

Internally, this is just [node-kexec][1]. h/t to [@jprichardson][2] for literally all the work.

``` js
var hoagie = require('hoagie');

require('hoagie-exec');

var app = hoagie();

app.use('top', function(req, res) {
	res.exec('top');
});

app.run([]);
```

## License

[ISC License](https://github.com/jeremyruppel/hoagie-exec/blob/master/LICENSE)

[1]: https://github.com/jprichardson/node-kexec
[2]: https://github.com/jprichardson

{'fraction_non_alphanumeric': 0.15249088699878494, 'fraction_numerical': 0.004860267314702308, 'mean_word_length': 4.583050847457627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3330171', 'n_tokens_mistral': 591, 'n_tokens_neox': 575, 'n_words': 172}