File access in electron app using ionic framework

I have an ionic app. I am exporting some file from the app to ipad/ android phone memory. How can I do the same in electron desktop app? I am using same codebase for mac and windows desktop app.

check out the bridge between the app and nodejs.

In nodejs, simply define a method to store something to the filesystem (in nodejs fs-lib).
And to handle paths os independend use the path-lib

Thanks @bengtler, will try the same and update here.