nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

build node.dll #4377

Closed bncdemo closed 2 weeks ago

bncdemo commented 2 months ago

Details

Hi,

How to build node.dll in windows, and then use that dll to run a given nodejs script? I did not find any information about that.

Thanks.

Node.js version

v18

Example code

No response

Operating system

windows 10

Scope

build native dll in win10

Module and version

Not applicable.

RedYetiDev commented 2 months ago

Hi! As it currently stands, your issue may need some more context to be understood correctly. Please provide more context.

Thank you!

bncdemo commented 2 months ago

Hi! As it currently stands, your issue may need some more context to be understood correctly. Please provide more context.

Thank you!

Hi,

How to build nodejs as a native windows dll, reference it in a project, then call/run a specific nodejs script using this dll?

preveen-stack commented 2 months ago

perhaps you are looking for single executable https://github.com/nexe/nexe

bncdemo commented 2 months ago

perhaps you are looking for single executable https://github.com/nexe/nexe

Can you show me a c++ example , that run a nodejs script using node static library, and read the result of the script?

preveen-stack commented 1 month ago

Nexe coverts .js files into exe files. I guess that is your use case

RedYetiDev commented 2 weeks ago

Unfortunately, your issue didn't seem very clear. If you can provide a clear issue that directly affects Node.js, please open a new issue.

Otherwise, alternative forums may be better.