I'm trying to build a javascript app and i need to use a c++ library. Is there any way to include a c++ library in a javascript application?
2 Answers
Yes. You can utilize emscripten to convert C++ to JavaScript. You can alternatively
use Native Messaging to communicate with a shell script
use a local server to
POSTcommands to a shell script which runs the native shell script, e.g., seeshell_exec()calls at PHP at How to programmatically send a unix socket command to a system server autospawned by browser or convert JavaScript to C++ souce code for Chromium?
1 Comment
Anderson Green
In addition to these options, Node.js supports native addons in C++.