@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!

/@cjhowe7/hapi-sendgrid/

    Package Sidebar

    Install

    npm i @cjhowe7/hapi-sendgrid

    Weekly Downloads

    3

    Version

    0.1.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • cjhowe7