1.0.0 • Published 11 years ago
connect-gitsha v1.0.0
connect-gitsha
Add an 'X-Git-SHA' header to each response
installation
$ npm install connect-gitsha
usage
Like any other middleware:
var express = require('express')
, gitsha = require('gitsha')
;
var app = express();
app.use(gitsha());
Why?
Because it's nice to know what rev of your software is running
requirements
- git needs to be in the path of the application user
- the working directory needs to be within the git repository
1.0.0
11 years ago