garronej / denoify

🦕For NPM module authors that would like to support Deno but do not want to write and maintain a port.
http://denoify.land
MIT License
917 stars 21 forks source link

Add support for `Deno.env` #103

Closed dancrumb closed 1 year ago

dancrumb commented 1 year ago

Calls to process.env should be relatively straightforward to transpile... at the very least, a process.env.XYZ => Deno.env('XYZ') mapping would help.

I'm happy to attempt a PR, once I get to know the codebase better

garronej commented 1 year ago

Absolutely. Thank you for pointing that out.

You're PR will be very much wellcomed!

You'd have to work on this file: https://github.com/garronej/denoify/blob/main/src/lib/denoifySingleFile.ts

And update this test file: https://github.com/garronej/denoify/blob/main/test/denoifySingleFile.test.ts