sendgrid-stream
A simple Transform
stream that sends the data it recieves
in an email using sendgrid-web
. It is recommended that you have a
filtering stream of sorts before piping to this :).
install
npm install sendgrid-stream
Example
var sendgridStream = ; //// Instantiates the stream with `sendgrid-web` info//var stream = ; //// Log any errors to the console//stream; var data = key: 'value' otherKey: 'otherValue'; //// Same data is passed through to the otherside of the stream//stream; //// This will trigger an email to be sent with the `data` object//stream;
test
npm test
license
MIT