Created
June 12, 2012 20:26
-
-
Save oleics/2919922 to your computer and use it in GitHub Desktop.
dustjs: chunk WriteStream Interface
This file contains hidden or 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
module.exports = plugin | |
var request = require('request') | |
function plugin(chunk, context, bodies, params) { | |
return chunk.map(function(chunk) { | |
request | |
( { method: 'GET' | |
, uri: 'http://localhost:2001/useyourimagination/' | |
} | |
).pipe(chunk) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment