Replies: 2 comments 2 replies
-
|
When you import a If you want to write a library that works in both runtimes, only going with |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you for the explanation, @marvinhagemeister ! From what I understand, I could also use the Deno std modules. Node would be able to run them. Is there a big difference between the two approaches? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say we have something like this in a script:
import os from "node:os";Does it mean that Deno imports the necessary functions or classes from Node.js? If so, does it mean Node.js is required to run the script?
Is there a better way? If we use just Deno functions and methods to do the same things as Node.js, how can we ensure that the module or library runs with Node.js, too?
I am considering using Deno to build and maintain my libraries. The v2 is really great. But I want to make sure that:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions