Terminal email provider for Campaign
npm i campaign-terminal -S
using campaign
.
var campaign = require('campaign');
var terminal = require('campaign-terminal');
var client = campaign({
provider: terminal()
});
client.send(...) // as usual
an optional mapper(model)
function can be provided to transform the parts of the model we want to print to the terminal.
mit