I would like to use the C++ API of a project from Node and I can't change the C++ code.
I looked at node-ffi but it doesn't seems to be able to work with C++ namespace and classes.
Do you know any other way?
SWIG 可以为许多脚本语言包装 c++,包括 javascript/nodejs。见http://www.swig.org/Doc3.0/Javascript.html