-
-
Save timoxley/2318499 to your computer and use it in GitHub Desktop.
flatiron ip address middleware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var union = require('union'); | |
var flatiron = require('flatiron'); | |
var winston = require('winston'); | |
var ecstatic = require('ecstatic'); | |
app = new flatiron.App(); | |
app.use(flatiron.plugins.http); | |
app.http.before = [ | |
var union = require('union'); | |
var flatiron = require('flatiron'); | |
var winston = require('winston'); | |
var ecstatic = require('ecstatic'); | |
app = new flatiron.App(); | |
app.use(flatiron.plugins.http); | |
app.http.before = [ | |
function (req, res) { | |
app.log.info("REQ - hello client: " + req.connection.remoteAddress ); | |
res.emit('next'); | |
}, | |
ecstatic(__dirname + '/../site') | |
]; | |
app.start(8081); | |
ecstatic(__dirname + '/../site') | |
]; | |
app.start(8081); | |
Thats the npm outdated output: | |
npm http GET https://registry.npmjs.org/ecstatic | |
npm http GET https://registry.npmjs.org/winston | |
npm http GET https://registry.npmjs.org/union | |
npm http GET https://registry.npmjs.org/flatiron | |
npm http 304 https://registry.npmjs.org/union | |
npm http 304 https://registry.npmjs.org/ecstatic | |
npm http 304 https://registry.npmjs.org/winston | |
npm http 304 https://registry.npmjs.org/flatiron | |
npm http GET https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/eyes | |
npm http GET https://registry.npmjs.org/loggly | |
npm http GET https://registry.npmjs.org/pkginfo | |
npm http GET https://registry.npmjs.org/stack-trace | |
npm http GET https://registry.npmjs.org/async | |
npm http GET https://registry.npmjs.org/broadway/0.1.14 | |
npm http GET https://registry.npmjs.org/pkginfo/0.2.3 | |
npm http GET https://registry.npmjs.org/prompt/0.1.12 | |
npm http GET https://registry.npmjs.org/optimist/0.3.1 | |
npm http GET https://registry.npmjs.org/director/1.0.9-1 | |
npm http 304 https://registry.npmjs.org/loggly | |
npm http 304 https://registry.npmjs.org/stack-trace | |
npm http GET https://registry.npmjs.org/timespan | |
npm http GET https://registry.npmjs.org/request | |
npm http 304 https://registry.npmjs.org/pkginfo | |
npm http 304 https://registry.npmjs.org/async | |
npm http GET https://registry.npmjs.org/pkginfo/-/pkginfo-0.2.3.tgz | |
npm http 304 https://registry.npmjs.org/colors | |
npm http 200 https://registry.npmjs.org/pkginfo/0.2.3 | |
npm http 304 https://registry.npmjs.org/prompt/0.1.12 | |
npm http 304 https://registry.npmjs.org/eyes | |
npm http GET https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/pkginfo | |
npm http GET https://registry.npmjs.org/winston | |
npm http GET https://registry.npmjs.org/async | |
npm http 304 https://registry.npmjs.org/optimist/0.3.1 | |
npm http GET https://registry.npmjs.org/wordwrap | |
npm WARN [email protected] dependencies field should be hash of <name>:<version-range> pairs | |
npm http 304 https://registry.npmjs.org/timespan | |
npm http 304 https://registry.npmjs.org/director/1.0.9-1 | |
npm http 304 https://registry.npmjs.org/request | |
npm http 200 https://registry.npmjs.org/pkginfo/-/pkginfo-0.2.3.tgz | |
npm http 200 https://registry.npmjs.org/broadway/0.1.14 | |
npm http GET https://registry.npmjs.org/broadway/-/broadway-0.1.14.tgz | |
npm http 304 https://registry.npmjs.org/colors | |
npm http 304 https://registry.npmjs.org/pkginfo | |
npm http 304 https://registry.npmjs.org/winston | |
npm http GET https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/eyes | |
npm http GET https://registry.npmjs.org/loggly | |
npm http GET https://registry.npmjs.org/stack-trace | |
npm http 304 https://registry.npmjs.org/async | |
npm http 304 https://registry.npmjs.org/wordwrap | |
npm http 200 https://registry.npmjs.org/broadway/-/broadway-0.1.14.tgz | |
npm http 304 https://registry.npmjs.org/eyes | |
npm http 304 https://registry.npmjs.org/loggly | |
npm http 304 https://registry.npmjs.org/stack-trace | |
npm http GET https://registry.npmjs.org/timespan | |
npm http GET https://registry.npmjs.org/request | |
npm http 304 https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/cliff/0.1.7 | |
npm http GET https://registry.npmjs.org/nconf/0.5.1 | |
npm http GET https://registry.npmjs.org/utile/0.0.10 | |
npm http GET https://registry.npmjs.org/colors/0.6.0-1 | |
npm http GET https://registry.npmjs.org/eventemitter2/0.4.9 | |
npm http GET https://registry.npmjs.org/optimist/0.3.1 | |
npm http GET https://registry.npmjs.org/winston/0.5.10 | |
npm http 304 https://registry.npmjs.org/timespan | |
npm http 304 https://registry.npmjs.org/request | |
npm http 304 https://registry.npmjs.org/colors/0.6.0-1 | |
npm http 304 https://registry.npmjs.org/eventemitter2/0.4.9 | |
npm http 304 https://registry.npmjs.org/optimist/0.3.1 | |
npm http 304 https://registry.npmjs.org/winston/0.5.10 | |
npm http GET https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/eyes | |
npm http GET https://registry.npmjs.org/loggly | |
npm http GET https://registry.npmjs.org/pkginfo | |
npm http GET https://registry.npmjs.org/stack-trace | |
npm http GET https://registry.npmjs.org/async | |
npm http 200 https://registry.npmjs.org/utile/0.0.10 | |
npm http GET https://registry.npmjs.org/utile/-/utile-0.0.10.tgz | |
npm http 200 https://registry.npmjs.org/nconf/0.5.1 | |
npm http GET https://registry.npmjs.org/nconf/-/nconf-0.5.1.tgz | |
npm http 304 https://registry.npmjs.org/pkginfo | |
npm http 304 https://registry.npmjs.org/loggly | |
npm http 200 https://registry.npmjs.org/cliff/0.1.7 | |
npm http GET https://registry.npmjs.org/timespan | |
npm http GET https://registry.npmjs.org/request | |
npm http GET https://registry.npmjs.org/cliff/-/cliff-0.1.7.tgz | |
npm http 304 https://registry.npmjs.org/stack-trace | |
npm http 200 https://registry.npmjs.org/utile/-/utile-0.0.10.tgz | |
npm http 304 https://registry.npmjs.org/async | |
npm http 200 https://registry.npmjs.org/nconf/-/nconf-0.5.1.tgz | |
npm http 304 https://registry.npmjs.org/timespan | |
npm http 304 https://registry.npmjs.org/colors | |
npm http 304 https://registry.npmjs.org/eyes | |
npm http 304 https://registry.npmjs.org/request | |
npm http 200 https://registry.npmjs.org/cliff/-/cliff-0.1.7.tgz | |
npm http GET https://registry.npmjs.org/mkdirp | |
npm http GET https://registry.npmjs.org/rimraf | |
npm http GET https://registry.npmjs.org/async | |
npm http GET https://registry.npmjs.org/ncp | |
npm http 304 https://registry.npmjs.org/ncp | |
npm http 304 https://registry.npmjs.org/rimraf | |
npm http 304 https://registry.npmjs.org/mkdirp | |
npm http 304 https://registry.npmjs.org/async | |
npm http GET https://registry.npmjs.org/ini | |
npm http GET https://registry.npmjs.org/optimist | |
npm http GET https://registry.npmjs.org/pkginfo | |
npm http GET https://registry.npmjs.org/async | |
npm http 304 https://registry.npmjs.org/ini | |
npm http 304 https://registry.npmjs.org/async | |
npm http 304 https://registry.npmjs.org/optimist | |
npm http 304 https://registry.npmjs.org/pkginfo | |
npm http GET https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/eyes | |
npm http GET https://registry.npmjs.org/winston | |
npm http 304 https://registry.npmjs.org/eyes | |
npm http 304 https://registry.npmjs.org/winston | |
npm http 304 https://registry.npmjs.org/colors | |
[email protected] ./node_modules/union current=0.2.1 | |
[email protected] ./node_modules/ecstatic current=0.1.5 | |
[email protected] ./node_modules/flatiron/node_modules/broadway/node_modules/cliff/node_modules/winston current=0.5.10 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment