🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

stratumn-sendgrid

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stratumn-sendgrid

Sendgrid helper to be used in a Stratumn Agent

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

stratumn-sendgrid

Sendgrid helper to be used in a Stratumn Agent

build status dependency status

Installation

npm install --save stratumn-sendgrid

Usage

In your agent:

const EmailHelper = require('./stratumn-sendgrid');

module.exports = {
  requestSignatures: function(data) {
    EmailHelper.send({
      to: data.email,
      from: data.requesterEmail,
      subject: data.fileName,
      text: data.text
    })
      .then(() => this.append())
      .catch(err => this.reject(err));
  }
};
``

## Credits
[Stratumn Team](https://github.com/stratumn/)

## License

MIT

FAQs

Package last updated on 01 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts