Skip to content

Instantly share code, notes, and snippets.

@joshuakfarrar
Last active August 29, 2015 13:57
Show Gist options
  • Save joshuakfarrar/9794869 to your computer and use it in GitHub Desktop.
Save joshuakfarrar/9794869 to your computer and use it in GitHub Desktop.
"use strict";
var express = require('express')
, map = require('through2-map');
var app = express();
app.post('/', function(req, res) {
req.pipe(map(function (chunk) {
return chunk.toString().toUpperCase();
})).pipe(res);
});
app.listen(process.argv[2]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment