hoagie-exec

1.0.2 • Public • Published

hoagie-exec

Make your hoagie program exec to another process

Build Status

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. h/t to @jprichardson for literally all the work.

var hoagie = require('hoagie');
 
require('hoagie-exec');
 
var app = hoagie();
 
app.use('top', function(req, res) {
    res.exec('top');
});
 
app.run([]);

License

ISC License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    17
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    17
  • 1.0.1
    0

Package Sidebar

Install

npm i hoagie-exec

Weekly Downloads

16

Version

1.0.2

License

ISC

Last publish

Collaborators

  • jeremyruppel