1.0.3 • Published 12 years ago

modcgi v1.0.3

Weekly downloads
20
License
-
Repository
-
Last release
12 years ago

modcgi: a simple way to serve CGI executables

INSTALL

$ npm install modcgi

QUICK START

var http = require('http');
var cgi = require('modcgi');

http.createServer(cgi.createApp('path/to/cgi', {
  // Set debug level, no debug if ommited, 2 = very verbose
  debug: 2,
  // Set the current working directory of the cgi script
  cwd: 'path/',
  // Set the virtual path the script will use to respond
  // Defaults to '/' if ommited
  scriptName: '/'
}).listen(80);

LICENSE

This module is released under the MIT License.

license : http://www.opensource.org/licenses/mit-license.php