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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno Support #316

Open
abdulrahman1s opened this issue May 11, 2022 · 6 comments
Open

Deno Support #316

abdulrahman1s opened this issue May 11, 2022 · 6 comments

Comments

@abdulrahman1s
Copy link

It would be cool if we could use this library in Deno. 馃槃

@zackschuster
Copy link
Collaborator

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

@abdulrahman1s
Copy link
Author

abdulrahman1s commented May 11, 2022

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

@zackschuster
Copy link
Collaborator

zackschuster commented May 11, 2022

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.

@abdulrahman1s
Copy link
Author

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.

@zackschuster
Copy link
Collaborator

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.

@lucsoft
Copy link

lucsoft commented Apr 13, 2023

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

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

3 participants