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 #153

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

Deno Support #153

abdulrahman1s opened this issue May 11, 2022 · 3 comments

Comments

@abdulrahman1s
Copy link

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

@evanshortiss
Copy link
Owner

Deno has been on my list of things to play around with for a while now. I actually had a private repository named "denv-var" where I planned to try create a Deno port of this library. After that I started simply trying to port this library to be pure TypeScript. It was a little tricky due to features such as the custom accessors. Here's the work in progress code.

I'd love help with the TS port if you're interested. I suspect it'd be easier to support Deno once that work is complete, but maybe I'm wrong, and the current lib could support it with minor modifications?

@abdulrahman1s
Copy link
Author

I don't think it'll be hard to even automate the task to support deno.
since the process.env is exactly like Deno.env.toObject()
I could create PR for you once the typescript version gets merged if you don't mind.

@evanshortiss evanshortiss mentioned this issue Jul 13, 2022
10 tasks
@evanshortiss
Copy link
Owner

@abdulrahman1s version 8 is getting close to completion. I have published a beta tag on npm. You can try it using npm install env-var@beta. Code is in the https://github.com/evanshortiss/env-var/tree/typescript-refactor branch

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