nodemailer is an amazing node module to send emails within any of your nodejs apps. This is the transport plugin that goes with nodemailer to send email using Mailgun 🔫
Split the code in clearly defined (and renamed) functions
Moved to await / async
Handle template field (both consolidate or mailgun) in a retrocompatible way
Merged whitelist and transform
Removed sinon stubs (not needed anymore after splitting into small functions)
Moved tests from mocha to tape + faucet (test contents are still the same)
Fixed attachments tests to actually check for properties generated by the library
Added test for inline attachments
Updated dependencies to fix npm audit vulnerabilities
Added standard and prettier for more readable code
Added code transpilation to prepublish (using typescript's tsc) from es6 to es5 for those stuck on node < 7 (available in nodemailer-mailgun-transport/es5)
nodemailer-mailgun-transport/es5
)/cc @orliesaurus