DEPRECATION NOTICE: This project is no longer maintained.
$ 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 })
);