Format Email Address
Format an email address before sending email to it. Useful when sending emails with e.g. Amazon SES.
Will handle Q-encoding for you, so that unicode characters in the name part show up properly.
Installation
npm install --save format-email-address
Usage
const formatEmailAddress = console//=> foo@example.com console//=> John <john@example.com> console//=> John Smith <john@example.com> console//=> "Jack Sparrow, CPA" <jack@example.com> console//=> =?utf-8?Q?Linus_Unneb=C3=A4ck?= <linus@folkdatorn.se>