Make Electron node library accessible to Ionic

I’m writing a desktop application in Ionic. I want to build for Windows via Electron. Electron have the possibility to bind native node modules into it. I know I can make the standard modules of Electron accessible to Ionic.

Now I bind this library into Electron:
How can I make it accessible for Ionic, to use it in the provider?