heroku-ip
v0.0.3
Published
Ip middleware for ExpressJS running on Heroku
Downloads
7
Maintainers
Readme
node-heroku-ip
Ip middleware for ExpressJS running on Heroku
Installation
npm install heroku-ip
Usage
var express = require('express');
var herokuIp = require('heroku-ip')
var app = express();
app.use(herokuIp(['production']));
app.get('/', function(req, res){
res.send(req.heroku.ip);
});
app.listen(3000);