mailinator-client
v1.1.0
Published
Mailinator REST API client for JavaScript applications.
Readme
Mailinator JavaScript SDK
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.
API Reference
See Mailinator's API Reference for all of the currently available API endpoints.
Request Classes and Deprecations
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.
Usage examples
See EXAMPLES.md for more code examples on how to use the client.
Development
Build tests
npm test
Environment Configuration
Copy .env.example to .env and fill in your values:
cp .env.example .envBy default, most of the tests are skipped.
Build with tests
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.
Create index
Run the in-repo barrel generator:
npm run generate:indexThis command is also run automatically by npm run build.
Publishing Changes
- Merge to main
- Update version + tag (npm version patch|minor|major)
- Push tags (git push --follow-tags)
- Publish (npm publish)
