DEV Community

Discussion on: Opine Tutorial Part 1: Express for Deno

 
iampeters profile image
Peters Chikezie

oh ok. thanks. May I ask how you port these modules, I would love to learn so I can port some for myself 😜

Thread Thread
 
craigmorten profile image
Craig Morten

That would awesome for you to get involved! It depends very much on the module you wish to port.

  1. If it is already ESM and typescript, then you can just import it directly using the raw url!
  2. If it has no dependency on Node APIs in its code or subdeps then you can use JSPM CDN to import.
  3. Otherwise you need to port it - there are some tools to help, the rest is manually converting commonjs to ESM and swapping out Node methods for Deno ones.

Also check out my post on Reddit reddit.com/r/Deno/comments/h9ejsk/... for some more resources.

I might look to write a post on it if think would be useful?

Thread Thread
 
iampeters profile image
Peters Chikezie

thanks that would be awesome. I have been looking for a way to contribute to open-source but don't know where to start. You have been a great help so far.

Thread Thread
 
craigmorten profile image
Craig Morten

Generally it's a case of "I need to do a thing", seeing if it exists. If not then go code it and put it out there! If it helps you it'll help others πŸ˜„.

Check out things like firsttimersonly.com/ as well - there is a whole community worth of projects and issues geared towards helping people get involved in Open Source.