@wattmore/notifications

0.0.9 • Public • Published

@wattmore/notifications

Shared package for email templates and methods. It uses Maizzle for developing and compiling email templates with the aid of TailwindCSS.

Published NPM Package →

Development

# Install dependencies
npm install

# Run dev server
npm run dev

Publishing

# Bump the version
npm version patch

# Build templates and compile via Rollup
npm run build

# Publish to NPM
npm publish --access public

Usage

Sending a reset password email

const { sendResetPasswordEmail } = require('@wattmore/notifications');

await sendResetPasswordEmail({
  name: user.profile.firstName,
  to: user.email,
  emailLink: `${process.env.BASE_URL}/forgot-password?token=${token}`,
});

Readme

Keywords

none

Package Sidebar

Install

npm i @wattmore/notifications

Weekly Downloads

1

Version

0.0.9

License

Unlicense

Unpacked Size

51.7 MB

Total Files

5

Last publish

Collaborators

  • frankamous
  • mrbrett