I am able to connect to a VPN from terminal easily with the following openVPN command:
openvpn --config conf.ovpn
I need connect to the same VPN with Javascript (for selenium test), I already have installed openvpn.client with NPM:
npm install openvpn-client
However, I don't know how it works. I would like how to achieve a terminal application with similar functionalities of openvpn.
Documentation and source code