@cjhowe7/hapi-sendgrid

0.1.0 • Public • Published

@cjhowe7/hapi-sendgrid

A simple Hapi 17 plugin for SendGrid

Introduction

This is a simple plugin for using SendGrid with Hapi. You can use it like so:

await server.register([
  {
    plugin: require('@cjhowe7/hapi-sendgrid'),
    options: {
      apiKey: '<YOUR SENDGRID API KEY>'
    }
  }
])

Which will expose the @sendgrid/mail client on your requests through request.sendgrid. Enjoy!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    3

Package Sidebar

Install

npm i @cjhowe7/hapi-sendgrid

Weekly Downloads

3

Version

0.1.0

License

Apache-2.0

Last publish

Collaborators

  • cjhowe7