This is easy to find. If you are familiar with FFI (Foreign Function Interface), you can know what keywords you can search for.
The ffi library is available in many languages, python lua ruby
For node, search on npm and you will see this https://www.npmjs.org/package/ffi
There are examples in the description.
There are two main solutions. One is to load the dll by writing a Node Addon. The main method is LoadLibrary of C++, https://nodejs.org/api/addons... The other is to use node-ffi (https://github.com/node-ffi/n... However, this method requires environment dependencies.
This is easy to find. If you are familiar with FFI (Foreign Function Interface), you can know what keywords you can search for.
The ffi library is available in many languages, python lua ruby
For node, search on npm and you will see this
https://www.npmjs.org/package/ffi
There are examples in the description.
I haven’t encountered such a demand, but you can find ideas online, just Google it.
Two connections for your reference
Edge.js: .NET and Node.js in-process
Integrating Node.js with a C# DLL
There are two main solutions. One is to load the dll by writing a Node Addon. The main method is LoadLibrary of C++, https://nodejs.org/api/addons... The other is to use node-ffi (https://github.com/node-ffi/n... However, this method requires environment dependencies.