Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created August 4, 2012 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/3c5b26e1921fe4ae44e4 to your computer and use it in GitHub Desktop.
Save Raynos/3c5b26e1921fe4ae44e4 to your computer and use it in GitHub Desktop.
var dnode = require('dnode');
var net = require('net');
var server = net.createServer(function (c) {
var d = dnode({
transform : function (s, cb) {
cb(s.replace(/[aeiou]{2,}/, 'oo').toUpperCase())
}
});
c.pipe(d).pipe(c);
});
server.listen(5004);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment