I am trying to integrate an external C ++ library (I have access to the .so file as well as the header files) in my Node.js. application
After much research, my options come down to:
From the definition of node -ffi gitHub I cannot say whether it will work or not work directly in C ++ libraries:
node -ffi is a Node.js addon for loading and invoking dynamic libraries using pure JavaScript. It can be used to create bindings to native libraries without writing C ++ code.
So, I have the following questions:
- Does option 1) involve rewriting in some way an external C ++ library?
- Is node-fffi the ability to directly call into C ++ libraries without any C shell I need to write?
I am not an expert when it comes to C / C ++, so if I missed something basic so that you can answer, let me know so that I can improve my question.
source share