{"_id":"cgi","_rev":"32-00796a248f91a3474f4c056c45da314e","name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables","dist-tags":{"latest":"0.3.1"},"versions":{"0.0.1":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.0.1","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":"*"},"engines":{"node":">= 0.4.0"},"_id":"cgi@0.0.1","_engineSupported":true,"_npmVersion":"0.3.0-6","_nodeVersion":"v0.4.0","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"12ad919deb6f0ad355233e24b98ff742407cf2f6","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.0.1.tgz","integrity":"sha512-cgXKrLH9AV8+o1lWIJ6WF+jFLaAWjSE6SBnM1WN2Jml+eQs/rsSbOeUIPEuX4we1JyvkHWzDtYNNYuWcZHEXBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCR/43Su/vD4ZfRaij7fbNRjjQaRk16xeDbRIBsaJAayQIhAJICp47rRX6D8e5XoRaGQgenP0Ypnu3R6cqYeo5VJN5F"}]}},"0.0.2":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.0.2","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":"*"},"engines":{"node":">= 0.4.0"},"directories":{},"files":[""],"_id":"cgi@0.0.2","_engineSupported":true,"_npmVersion":"0.3.0-6","_nodeVersion":"v0.4.0","_defaultsLoaded":true,"dist":{"shasum":"a557a952316732d523bac14b918bc4d907c22a64","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.0.2.tgz","integrity":"sha512-DFptBE+FEcU7buLy6E2LjDzvhaE1qorLFqXQd4VPXFU5Wz3MKa6TP3ngJibJxEAg7io4siOu40rIeV3Z0n57kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEeEhGnmZGOf5aZ5xeFLkjDvvIPXiMkj+lnovcc5gTlDAiBg/8hNJfq4rdri27MG+L8WzSUKep9+P+TlcCcfl0FcPg=="}]}},"0.0.3":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.0.3","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":"*"},"engines":{"node":">= 0.4.0"},"directories":{},"files":[""],"_id":"cgi@0.0.3","_engineSupported":true,"_npmVersion":"0.3.0-6","_nodeVersion":"v0.4.0","_defaultsLoaded":true,"dist":{"shasum":"1a9bf7c0e32badf2dd08bac7d39bc46b8b8a8531","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.0.3.tgz","integrity":"sha512-wErLDozDZ2pavuCCwZpKi1shqZxrs0+pOkBBbLKERR4zxjHqHpinFDDNyn5/YOdYgviANjXSCdmO9nRNZUD6cg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFguKkANNDMkxKi55SlVR67iTArSTZSqdDSMU0fSCMk0AiBkDHr36xVbiL0vP30Q83Y0ayef78f3n77QENj5XD8YmQ=="}]}},"0.0.4":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.0.4","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":"*"},"engines":{"node":">= 0.4.0"},"directories":{},"files":[""],"_id":"cgi@0.0.4","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.0","_defaultsLoaded":true,"dist":{"shasum":"df615e9c4facdb715c8e55ed89672c6597f19f0f","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.0.4.tgz","integrity":"sha512-JCxrSC5Fexoqg7vTRd4AJvOfU3Q5/whsm1GVa7nGjD5aXaRSbruitw6oTLzUQlB8kf69Kb2zKpYf2MGMn1AIvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC50m11R9naMWDZgBnT6luPlckO5Or00QdMmuaoKg8iTgIgQQHnvyaDe8gXQMw9McH5uJ8aFtpfiHi/K34yukcwui8="}]}},"0.0.5":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.0.5","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":"*"},"engines":{"node":">= 0.4.0"},"directories":{},"files":[""],"_id":"cgi@0.0.5","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.0","_defaultsLoaded":true,"dist":{"shasum":"0985bdc3a17666539ba7d39c30357f005da1f401","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.0.5.tgz","integrity":"sha512-4NTO2ExCI84FKfxvmQYwf22bFCjMlnaH6VZiJs5rKOxqvse6eijU6BwBKscW9hOnXzuBhyiZ2UkINeZ2J7V2kQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuE4oDyVkmisZimqDXnZc63bnfBezlMPmDOI1NjnF74wIgZFtymLtPvPqlH4sHvYw6K2jdhttw0FrNl7r+DPW30xw="}]}},"0.0.6":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.0.6","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":"*"},"engines":{"node":">= 0.4.0"},"directories":{},"files":[""],"_id":"cgi@0.0.6","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.0","_defaultsLoaded":true,"dist":{"shasum":"4033740b74199b553dc63a74ea32ea741c0be28f","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.0.6.tgz","integrity":"sha512-v9WYMWaae+Yqg3BeMcbCvlCX5SklCNoaao94fYDtIP4q4CvJQyZDLoDTzT1L9ZOoq1M7QvHBSVrypQsjhaAgKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSmBRqYnhLZvKWOWapjzAecYGTft2X8pCMkMBdHy2z2QIgQi1OGoBkEJQYvEx0Px3FMp8Zl82IwMn9gHOmciKnqpM="}]}},"0.0.7":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.0.7","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":">= 1.1.1","header-stack":">= 0.0.2"},"engines":{"node":">= 0.4.0"},"directories":{},"files":[""],"_id":"cgi@0.0.7","_engineSupported":true,"_npmVersion":"0.3.17","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"2b22877b0d1ec9b69cc0d3adaa4352ea7974f6d6","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.0.7.tgz","integrity":"sha512-yTG33uhg7OSR7wd1tIUIUml9kaqiDHQh+L4wuuWK6C6jurzqeZEfzRjTPB9eLF/PBijaX1vPBv45JOgOj7HWOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJ9ENHWZFuINoEnp5tzCqGO6eZh0rdtY/hHFmdowLXFAiB8jMttzkdvlgY8uHTLM/vOPO6sSv7ChAbfveIRMiRJXA=="}]}},"0.0.8":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.0.8","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":">= 1.1.1","header-stack":">= 0.0.2"},"engines":{"node":">= 0.4.0"},"directories":{},"files":[""],"_id":"cgi@0.0.8","_engineSupported":true,"_npmVersion":"0.3.17","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"7fda711295a84cef71fa2132bc8e173fdfe25cfc","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.0.8.tgz","integrity":"sha512-ROBX8aO4qo9rUrlJK11jAr98wZ5BaGkt4zLDYn7Wgdx9B82V0vSGqtt9e/CFEzDkHND4t2WyTofyMBKYzKVTvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/IgGVPZ1zuUW1cMAXHvNyg0ezBIRnsVKZ06zRzDEvYAiEAzZvwWqWy1YpF6V3fghI4L3wtLS+FAD/Lu0vjThNj+sI="}]}},"0.1.0":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.1.0","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":">= 1.1.1","header-stack":">= 0.0.2","debug":">= 0.7.0"},"engines":{"node":">= 0.4.0"},"_id":"cgi@0.1.0","dist":{"shasum":"edf854b108a2244049eb0d98c0b72d2df87319e6","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.1.0.tgz","integrity":"sha512-2XdDBJtCMR4v/FBFmlfT2f2A/HPC75SHLL+ik/2T3brIU4u9bkUr5YM2Qqk45E0QTZ3CS9LXJwxjnTs/9byVFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDngVtKca5l3xeUJ71caK3TPPdlz5TsWtbb0KSb6bn79wIgK6L0E/cVU+S4cg4DITRF9bpaLxa5gZLyNVW+qZV/pjY="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"TooTallNate","email":"nathan@tootallnate.net"},{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{}},"0.2.0":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables.","version":"0.2.0","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"./cgi","dependencies":{"stream-stack":">= 1.1.1","header-stack":">= 0.0.2","debug":">= 0.7.0"},"engines":{"node":">= 0.4.0"},"_id":"cgi@0.2.0","dist":{"shasum":"4435b5a61cc65c66ee50092a5f85da7eb024ff35","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.2.0.tgz","integrity":"sha512-95tJlqJwSXTJZhv35evG8Z/0K5YRPiz/12G6BQwr8GKqt64gM56pruAxtIsPLGJEcEhzsGHhKST/ECtp66WGbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG92ENCA0NofuIDa+J2uQTDZ008e1o1hc8eiX2sulGpjAiAfncuVzRa329UcVa5L77dtgI3u/65lC3GAEtmXH0GodA=="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"TooTallNate","email":"nathan@tootallnate.net"},{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{}},"0.3.0":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables","version":"0.3.0","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"license":"MIT","main":"./cgi","dependencies":{"debug":"~0.8.1","extend":"~1.2.1","header-stack":"~0.0.2","stream-stack":"~1.1.1"},"devDependencies":{"connect":"~2.17.1"},"bugs":{"url":"https://github.com/TooTallNate/node-cgi/issues"},"homepage":"https://github.com/TooTallNate/node-cgi","_id":"cgi@0.3.0","_shasum":"b22793c728b427ab77e18cc5eeb6f94a57459f5d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"TooTallNate","email":"nathan@tootallnate.net"},{"name":"tootallnate","email":"nathan@tootallnate.net"}],"dist":{"shasum":"b22793c728b427ab77e18cc5eeb6f94a57459f5d","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.3.0.tgz","integrity":"sha512-vSw1EFDWUgCPp8l0zb2tBZbpkdjv31nybakwQCpEFu7Va9uzI57px8CfuBGLRpT6LGGRf6ll0ncTk91Wu77kdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9XtxDOg81/00JCii47oTrlPvIoWa5xr4XcvoItUlmXAiAvJFzutBkD6xaZyw6rzU+g0w+0WEJYpYagmiDXDRSV2Q=="}]},"directories":{}},"0.3.1":{"name":"cgi","description":"A stack/connect layer to invoke and serve CGI executables","version":"0.3.1","repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"license":"MIT","main":"./cgi.js","dependencies":{"debug":"2","extend":"~2.0.0","header-stack":"~0.0.2","stream-stack":"~1.1.1"},"devDependencies":{"connect":"~2.17.1"},"gitHead":"d533a32fd078bba6eb8adeab153d2cc2f72d36d4","bugs":{"url":"https://github.com/TooTallNate/node-cgi/issues"},"homepage":"https://github.com/TooTallNate/node-cgi","_id":"cgi@0.3.1","scripts":{},"_shasum":"8751da64a1cf1849d11056318b760d1acfba47dc","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.10.32","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"TooTallNate","email":"nathan@tootallnate.net"},{"name":"tootallnate","email":"nathan@tootallnate.net"}],"dist":{"shasum":"8751da64a1cf1849d11056318b760d1acfba47dc","tarball":"https://registry.npmjs.org/cgi/-/cgi-0.3.1.tgz","integrity":"sha512-V8UI9xBCOBKkuw1UEnD5NxHNuYDGCN3q4FncqNXPDpsSEQWwBShqUrvxIf+nL31hMHc5RCbkAuUy4r7j0wx00A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhddnrcRJHjASxQe2VL4eBVWfVmyhhHEew1Cey2wB9kAiEAzicJfhYDBdfgIuWSrjNiRy711JzNd55DwpzNJsfAQ+4="}]},"directories":{}}},"maintainers":[{"email":"nathan@tootallnate.net","name":"tootallnate"}],"time":{"modified":"2022-06-13T05:50:27.524Z","created":"2011-02-17T22:20:35.511Z","0.0.1":"2011-02-17T22:20:36.655Z","0.0.2":"2011-02-18T18:08:05.771Z","0.0.3":"2011-02-19T00:01:07.524Z","0.0.4":"2011-03-11T01:24:58.199Z","0.0.5":"2011-03-11T01:28:55.121Z","0.0.6":"2011-03-11T01:30:14.952Z","0.0.7":"2011-03-28T18:19:43.153Z","0.0.8":"2011-03-28T19:57:55.561Z","0.1.0":"2012-12-15T19:56:05.478Z","0.2.0":"2013-02-21T08:41:04.829Z","0.3.0":"2014-05-22T16:25:41.938Z","0.3.1":"2015-01-29T20:03:34.858Z"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-cgi.git"},"readme":"node-cgi\n========\n### An http/stack/connect layer to invoke and serve CGI executables.\n\n\nThis module implements [RFC 3875][rfc3875], and offers an easy interface to run\nand serve CGI executables using [Node][]'s HTTP server. I wrote this so I could\ndirectly serve [GitWeb][node-gitweb] through Node.\n\n\nCGI Scripts?\n------------\n\nIf you're not familiar with CGI scripts, they're simply executable files that\nget invoked by a web server with client requests. The script has Environment\nVariables set that indicate information about the HTTP request the client has sent.\n\nHere's what a simple \"Hello World\" CGI script in `sh` would look like:\n\n``` bash\n#!/bin/sh\n\n# Headers are written first. The special \"Status\"\n# header indicates the response status code\necho \"Status: 200\"\necho \"Content-Type: text/plain\"\necho\n    \n# Followed by a response body\necho \"Hello World!\"\n```\n\nLet's call it `hello.cgi`. Be sure to make it executable with `chmod +x hello.cgi`!\n\n\nInvoking \"The Script\" with Node\n-------------------------------\n\nNow, we need to set up our Node HTTP server. For every request sent to the server,\nour `hello.cgi` script will be invoked, and the response will be sent back to the\nHTTP client:\n\n``` javascript\nvar cgi = require('cgi');\nvar http = require('http');\nvar path = require('path');\n\nvar script = path.resolve(__dirname, 'hello.cgi');\n\nhttp.createServer( cgi(script) ).listen(80);\n```\n\nThis will set up a CGI handler with the default options.\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[Node]: http://nodejs.org\n[node-gitweb]: https://github.com/TooTallNate/node-gitweb\n[rfc3875]: http://tools.ietf.org/html/rfc3875\n","homepage":"https://github.com/TooTallNate/node-cgi","bugs":{"url":"https://github.com/TooTallNate/node-cgi/issues"},"license":"MIT","readmeFilename":"README.md","users":{"ivangaravito":true}}