综合编程

Host firebreath plugin in Node.js

微信扫一扫,分享到朋友圈

Host firebreath plugin in Node.js
0

I have created a browser plugin based on Firebreath framework. Now I want to load the plugin into Node.js
and make the javascript code communicate with the plugin. My draft idea is creating a Node.js
C++ add-on to wrapper the plugin. Node.js
loads the add-on. The add-on loads the plugin. The function call between the javascript code and the plugin code is via the add-on.

I want to consult the experts before moving ahead. Does anyone have the experience to make the node.js
script communicate with firebreath plugin? Is my idea possible? Please share more details.

Thanks,
Jeffrey

Problem courtesy of: Jeffrey

Solution

It’s certainly possible, but it may be more trouble than it’s worth. What I’d probably do instead is try to abstract out the JSAPI stuff (ScriptingCore project) and make an adapter that wraps a JSAPI object with a node object. Actually loading the full plugin as-is would require a lot of work. It’s doable, but it would be a bit of a pain.

… I wrote FireBreath, so I do know what I’m talking about =]

Solution courtesy of: taxilian

阅读原文...


微信扫一扫,分享到朋友圈

Host firebreath plugin in Node.js
0

Node.js Recipes

A Generic Swift Blog Post

上一篇

Adept - A blazing fast language for general purpose programming

下一篇

评论已经被关闭。

插入图片

热门分类

往期推荐

Host firebreath plugin in Node.js

长按储存图像,分享给朋友