Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
openvpn-cli-wrapper
Advanced tools
A Javascript/Typescript wrapper to manage VPN connections using OpenVPN command line instructions.
A Javascript/Typescript wrapper to manage VPN connections using OpenVPN command-line instructions.
This minimal implementation library is used in a production software to open a VPN connection using Electron.
Thanks to resin.io openvpn-client project for the original coffeescript implementation.
The OpenVPN community binaries have to be pre-installed and put in the PATH environment folder under Windows.
Install via npm.
$ npm install openvpn-cli-wrapper
or
Install via git clone
$ git clone https://github.com/masvis/openvpn-cli-wrapper
$ cd openvpn-cli-wrapper
$ npm install
Under test/openvpn-client.test.ts
you can read a default implementation of a connection and disconnection test.
This class is the core of the library.
The constructor needs to be used sending
Launch the OpenVPN process
Note: If your configuration need a superuser operation in Linux (ex.: creating a TAP device), you need to run the test or your parent application using
sudo
.
Close the OpenVPN process
Note: Under a Linux environment you need to shutdown the process calling the disconnect before quitting you application.
Events are emitted by the events
field of an OpenVPN
class instance.
connect
method is called, only if connection is established without
errors.connect
method is called if an error occurs or after connected
event if a disconnection or an error occurs.Using
$ npm test
you can check that all the dependencies are correctly installed.
MIT license. See the LICENSE file for details.
FAQs
A Javascript/Typescript wrapper to manage VPN connections using OpenVPN command line instructions.
The npm package openvpn-cli-wrapper receives a total of 55 weekly downloads. As such, openvpn-cli-wrapper popularity was classified as not popular.
We found that openvpn-cli-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.