emailjs icon indicating copy to clipboard operation
emailjs copied to clipboard

Deno Support

Open abdulrahman1s opened this issue 3 years ago • 6 comments

It would be cool if we could use this library in Deno. :smile:

abdulrahman1s avatar May 11 '22 14:05 abdulrahman1s

yeah, that'd be neat! have you tried running it in compatibility mode?

zackschuster avatar May 11 '22 14:05 zackschuster

I don't think it'll works using the node compatibility mode since the tls module is not yet implemented by the deno devs

abdulrahman1s avatar May 11 '22 15:05 abdulrahman1s

ah, bummer. i love the idea, though. how would we implement it? i thought of using an import map to point the node built-ins to a separate file that re-exports deno built-ins, but i'm not sure if that's the right approach.

zackschuster avatar May 11 '22 16:05 zackschuster

Deno has built-in modules to do the job such as tls But it'll be hard to maintain node and deno at the same time.. Maybe if we could create adapters to make things easier to automate the deno version would be great.

abdulrahman1s avatar May 12 '22 02:05 abdulrahman1s

yeah, that was essentially my idea; the import map would point built-ins like tls to e.g. deno.ts where we would re-export a function that calls into deno's stdlib.

zackschuster avatar May 12 '22 16:05 zackschuster

Hello Denoers! I'm advancing deno support in https://github.com/lucsoft/emailjs with better typing and all that fancy stuff. Currently it requires node api but im hoping to go full Web Standards + Deno TLS/Socket stuff

lucsoft avatar Apr 13 '23 12:04 lucsoft