3 ms·
Doesn't that make the answer "mostly yes, but you need to write the binding in C++"? I.e. write all your code in C, then just call the C methods from the one C+
by anon4 11y ago
Doesn't that make the answer "mostly yes, but you need to write the binding in C++"? I.e. write all your code in C, then just call the C methods from the one C++ class you must write.
- angersock 11y agoEh, by that logic, we can write Node extensions in Fortran or Brainfuck.
- nawitus 11y agoYou can write the library/addon in C and then define the bindings with JavaScript using various npm libraries. There's no need for C++. Here's an example of such a wrapper over a C library: https://github.com/panuhorsmalahti/mtp https://github.com/panuhorsmalahti/mtp