A Node.js client library for the Litmus Customer API, allowing email testing automation. Version 0.3.2 is the latest stable release. It wraps all major API endpoints (tests, versions, etc.) and returns promises via Bluebird. Key differentiator is full promise-based async handling compared to callback-based alternatives. Suitable for integrating email testing into CI/CD pipelines.
npm install litmus-apiVerified import paths — ran on the pinned version, not inferred.
Shows how to instantiate the Litmus client with credentials and fetch a list of tests.
Use array destructuring: const [response, body] = await api.getTests();
After createVersion, check url_or_guid field and send email to that address.
Pass username and password in options. For API tokens, use different client.
Check Litmus API docs for current format.
Use const Litmus = require('litmus-api') or import Litmus from 'litmus-api'.Use await api.getTests() or .then() to handle the promise.
Verify credentials and URL format (e.g., https://yourcompany.litmus.com).