How to embed Node.js interpreter into C/C++?

后端 未结 6 1472
后悔当初
后悔当初 2020-12-05 22:43

I want to use Node.js scripts in my C/C++ applications. Some people suggested me to start with v8, libev and libeio; but it means rewriting Node.js from scratch.

So,

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 23:41

    I've build something close to what I think you're looking for:

    https://github.com/ZECTBynmo/tacnode

    It's a library that allows node.js to be linked statically into a C++ application. It's definitely not polished, but I've used it to launch simple node scripts.

提交回复
热议问题