Customise modules


Hello,I am new to electron and I want to know that can I relate my native cocoa API for mac application into electron.
Well, I have seen on internet using node.js or io.js module…

Also I want to know can i make custom modules ?

Cocoa APIs and Electron

Yes, you can make your own custom modules. Electron can use any standard npm modules.


so is it possible that i create a module in objective-c cocoa and it will be used in electron ???


Native Node modules must be written in C++, to use Objective-C you could try something like NodObjC, note that you’ll need to rebuild it for Electron after doing the npm install because it has native dependencies.


thanks so much for the help