Can you create an sdk/library with Ionic

I have built an app with Ionic, works great. The next step would be to expose the functionality in my app to other apps so they can utilize the functions. So how in Ionic can you expose providers or page logic to another app on the same device?
Is this possible to access data across apps? How would you approach it?