connect-spawn

Child process middleware for connect.

Connect Spawn

$ npm install connect-spawn

The spawn middleware executes a child process on request and responds with the output:

  connect.createServer(
      require('connect-spawn')('ls', ['-Al'], { cwd: __dirname })
  );