0.7.1-5 • Published 1 month ago

maddy-dist v0.7.1-5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

maddy-dist

Use maddy as an npm module for tighter integration with node apps (e.g. test fixtures). See the maddy documentation for usage: https://maddy.email/.

Usage

npm install maddy-dist

Put a Corefile in the current working directory.

import maddy from "maddy-dist";
const server = await maddy();
// You can also pass in a custom environment
const server = await maddy({
  MY_VARIABLE: "www.example.org",
});

// And shut down when you are done
server.stop();