Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Node module to call node scripts as CGI scripts
JavaScript
Branch: master

version 0.1

latest commit cf2927ce14
regis authored
Failed to load latest commit information.
.npmignore version 0.1
README.md version 0.1
cgi.js version 0.1
package.json version 0.1

README.md

node-cgi

Node module to call node scripts as a CGI script

USAGE

#!/usr/bin/node var ncgi = require('ncgi'); var params = ncgi.getParameters(); ncgi.print("Hello world
\n"); ncgi.print("parameters="+require('util').inspect(params)+"
\n");

FEATURES

  • A node script can be called from Apache by giving it the .cgi extension and making it executable
  • Supports GET as well as POST (application/x-www-form-urlencoded content-type only) parameters
  • Can set a custom mimetype with ncgi.getParameters() (default text/html)
  • Can include a script relative to the current script with eval(ncgi.read('path/to/relativ/script.js'))

LICENSE

node-cgi is released under GPL license

Something went wrong with that request. Please try again.