# node-gitweb **Repository Path**: mirrors_TooTallNate/node-gitweb ## Basic Information - **Project Name**: node-gitweb - **Description**: Directly invoke and serve GitWeb through NodeJS. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README node-gitweb =========== ### Directly invoke and serve [GitWeb][] through [NodeJS][Node]. This module uses [node-cgi][] to invoke the `gitweb.cgi` perl file.  Example ------- ``` js var http = require('http'); var gitweb = require('gitweb'); http.createServer( gitweb('/') ).listen(80); ``` That's a very simple example. The first argument is the `mountPoint`. This is the HTTP url in which GitWeb will be served from. It MUST start and end with a `/` slash character. It's recommended to also pass a second argument, a `config` Object, that can take the following parameters: * __projectroot__ - The root directory where git repos will be listed from. Default: `process.env.HOME`. * __homelink__ - The text of the link to the GitWeb root in the top-left corner of each page. Default: the value of __projectroot__. * __sitename__ - This value will be prefixed onto the `