npm.io
0.0.202 • Published 1 year ago

remase

Licence
MIT
Version
0.0.202
Deps
1
Size
14 kB
Vulns
0
Weekly
0

Remase SDK

This libary is currently under development, created to simplify react emails and subscribers management

For more info visit Remase.io.

This is the node.js library for Remase Api

Installation

You can install Remase via npm:

npm install remase
# or
yarn add remase

Setup

First, you need to get an API key from Remase.io.

import { Remase } from "remase";
const remase = new Remase("your_api_key");

Usage

Design your email on Remase.io and copy the template ID

Sending your email:

await remase.emails.send({
  from: "you@example.com",
  to: "user@gmail.com",
  subject: "hello world",
  templateId: "your_templateId",
});

Add a subscriber

await remase.subscribers.add({
  email: "user@gmail.com",
});

License

MIT License

Keywords