Node.js Electron的扩展模块
Node.js可以通過以下方法擴展功能
1.編寫內核模塊,需要重新編譯nodejs,個人不推薦。
2.編寫c++擴展模塊
? ? 2.1 使用V8/libuv/node API開發c++ Addons
? ? ? ? ? https://github.com/nodejs/node-addon-examples
http://blog.csdn.net/chenhaifeng2016/article/details/74939493
? ? 2.2 使用Native Abstractions for Node.js (nan) 開發c++ Addons
? ? ? ? ? https://github.com/nodejs/nan
? ? 2.3 使用N-API開發c++ Addons
? ? ? ? ? https://nodejs.org/dist/latest-v8.x/docs/api/n-api.html
electron如何使用擴展模塊?
https://electron.atom.io/docs/tutorial/using-native-node-modules/
https://github.com/electron/electron/blob/master/docs-translations/zh-CN/tutorial/using-native-node-modules.md
electron使用Node.js擴展模塊
http://blog.csdn.net/chenhaifeng2016/article/details/74962611
electron通過ffi使用DLL
http://blog.csdn.net/chenhaifeng2016/article/details/75007006
electron通過Node.js擴展模塊來使用DLL
http://blog.csdn.net/chenhaifeng2016/article/details/74989966
總結
以上是生活随笔為你收集整理的Node.js Electron的扩展模块的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Electron通过ffi调用DLL
- 下一篇: Mysql semi-sync VS g