Customise modules


#1

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 ?
Thanks


Cocoa APIs and Electron
#2

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


#3

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


#4

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.


#5

thanks so much for the help