Node.js SDK for MailerLite API v2, version 1.2.0. It is a thin wrapper around Axios providing authentication, automatic camelCase conversion for request/response, TypeScript type definitions, and shorthand methods for MailerLite endpoints (account, campaigns, groups, segments, subscribers, webhooks, etc.). The library resolves API responses to body only (not full Axios response). It uses a default base URL of https://api.mailerlite.com/api/v2/ and offers options to override Axios config and headers. Release cadence is low; last release was over 2 years ago. Differentiators: built-in camelCase conversion and TypeScript support, unlike simpler wrappers.
npm install mailerlite-api-v2-nodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes MailerLite client with API key, fetches account, retrieves recent subscribers, and creates a group.
Use const MailerLite = require('mailerlite-api-v2-node').defaultConsider migrating to MailerLite API v3 or using a different SDK (e.g., @mailerlite/mailerlite-nodejs).
If you need full response, use the raw methods (e.g., getCampaignsRaw) which return the full Axios response.
Disable camelCase conversion by passing { useCaseConverter: false } in options.Use require('mailerlite-api-v2-node').defaultUse new MailerLite(apiKey) explicitly
Ensure the method exists (list of methods in README) and that you are not using a raw method like getAccountRaw which returns the full response