@fizz.js/node-sendgrid
v1.0.0
Published
node-sendgrid
Downloads
3
Readme
@fizz.js/node-sendgrid
This is a sendgrid library for express.
install
add dependencies
into package.json
and run yarn install
configure
please put sendgrid
config into config/${env}.json
{
"sendGrid": {
"token": "",
"defaultFrom": {
"mailAddress": ""
},
"defaultTo": {
"mailAddress": ""
}
}
}
or put SENDGRID_TOKEN
, SENDGRID_FROM
, SENDGRID_TO
into .env
file
SENDGRID_TOKEN="XXXXXXXXXX"
SENDGRID_FROM="XXXXXXXXXX"
SENDGRID_TO="XXXXXXXXXX"
test
yarn test
coverage
yarn cover
build
yarn build
docs
yarn docs