Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export for MIMEMessage #47

Open
cloudkite opened this issue Sep 5, 2023 · 1 comment
Open

export for MIMEMessage #47

cloudkite opened this issue Sep 5, 2023 · 1 comment

Comments

@cloudkite
Copy link

Would be nice if there was a way to access the MIMEMessage class from the npm module.

for example:

import MIMEMessage from "mimetext/MIMEMessage"

let envctx = { ... }
let message = new MIMEMessage(envctx)

would be nice for environments like cloudflare workers where node builtins do not exist. Also could have advantages for advanced customisation:

  • other environments can be supported without extra entrypoints. for example GAS entrypoint could be done in userland.
  • or for optimisation avoiding extra deps like mime-types.
@muratgozel
Copy link
Owner

hi @cloudkite the library have 3 entrypoints so far, node, gas and browser. and i would like to add support for more environments for sure, i will lookup the cloudflare workers and see if we can add it as an entrypoint. thanks for bringing this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants