Setting up Wifi-profile for any os

Hi, I’m searching a way to add a wifi profile on the os via Ionic-App.
Is there a library or a way to set the wifi profile that is not depending on a specific os. Especially I want to set ssid, pw, Identity, authentication method (options of this method) and check if this profile is actual configured on the system.