Skip to content

mailerlite/mailerlite-nodejs

Repository files navigation


MailerLite logo


MailerLite Node.js SDK

MIT licensed NPM Version


Installation

npm install @mailerlite/mailerlite-nodejs

Usage

// For ECMAScript (ESM)
import MailerLite from '@mailerlite/mailerlite-nodejs';

const mailerlite = new MailerLite({
  api_key: "API_KEY"
});
// For CommonJS (CJS)
const MailerLite = require('@mailerlite/mailerlite-nodejs').default;

const mailerlite = new MailerLite({
  api_key: "API_KEY"
});