Replies: 3 comments 11 replies
-
I think you're mostly asking for importing/resolving modules. That isn't implemented, and would require work to expose that from libv8. |
Beta Was this translation helpful? Give feedback.
-
Bear in mind that V8 is only a JavaScript engine. Node.JS adds a lot on top. For example, I use this for a headless browser - https://github.com/gost-dom/browser - and I will implement some event loop behaviour on top of v8, which could potentially be extracted as a separate Go package. There's another possibility. The Goja project is a pure Go JavaScript runner, and they have a side project to emulate node.js - so it could be worth looking into. It's also somewhat easier to use from Go than V8. |
Beta Was this translation helpful? Give feedback.
-
New thread for the unimplemented NodeJS API |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if it is possible to execute a folder 📁📂 in which there's an entire Node JS application instead of only some small scripts. Let's say I have a node folder in which I add regularly new apps and each time I add an app I can dynamically trigger a new VM context for that folder and let's say open the browser at http://localhost:12777/nodejs/mynewapp.
Beta Was this translation helpful? Give feedback.
All reactions