The official Mailinator JavaScript SDK. This REST API client is implemented as a thin wrapper around the Mailinator API. The OpenAPI specification is the source of truth for this client.
Uses Microsoft's typed-rest-client. All requests are async functions.
See Mailinator's API Reference for all of the currently available API endpoints.
For the list of available Request classes in this SDK, see REFERENCE.md.
Note that some of the Request classes are deprecated and will be removed in a future version. See ROADMAP.md for more information.
See EXAMPLES.md for more code examples on how to use the client.
npm test
Copy .env.example to .env and fill in your values:
cp .env.example .envBy default, most of the tests are skipped.
Most of the tests require env variables with valid values. Visit tests source code and review EnabledIfEnvironmentVariable wrapped parts. The more env variables you set, the more tests are run.
Run the in-repo barrel generator:
npm run generate:indexThis command is also run automatically by npm run build.
- Merge to main
- Update version + tag (npm version patch|minor|major)
- Push tags (git push --follow-tags)
- Publish (npm publish)