stream-defaults
v0.1.0
Published
Apply defaults to objects as they pass through your streams
Downloads
127
Readme
stream-defaults
Apply default keys/values to objects as they pass through your streams
Install
npm install stream-defaults
Usage
var defaults = require('stream-defaults'),
opts = { from: "[email protected]", template: "default_template" }
fetchMsgFromQueue().pipe(defaults(opts)).pipe(sendMail);