Socket
Socket
Sign inDemoInstall

cisco-vpn

Package Overview
Dependencies
3
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cisco-vpn

Wrapper around the Cisco AnyConnect VPN client.


Version published
Weekly downloads
10
Maintainers
1
Install size
36.7 kB
Created
Weekly downloads
 

Readme

Source

cisco-vpn

Wrapper around the Cisco AnyConnect VPN client.

Installation

npm install cisco-vpn

Quickstart

const vpn = require('cisco-vpn')({
    server: 'vpn.example.org',
    username: 'uncreative-username',
    password: 'super-secret-password'
})

vpn.connect()
    .then(() => console.log('connected!'))

// some time later
vpn.disconnect()
    .then(() => console.log('disconnected!'))

API

require('cisco-vpn')(options)

  • options <Object>:
    • exe <String>: default: C:/Program Files (x86)/Cisco/Cisco AnyConnect Secure Mobility Client/vpncli.exe
    • server <String>: required
    • username <String>: required
    • password <String>: required
  • returns the vpn <Object>

vpn.connect()

  • returns a <Promise> which:
    • resolves if the vpn was connected
    • rejects if an error occured

vpn.disconnect()

  • returns a <Promise> which:
    • resolves if the vpn was disconnected
    • rejects if an error occured

License

WTFPL – Do What the F*ck You Want to Public License.

Made with :heart: by @MarkTiedemann.

Keywords

FAQs

Last updated on 19 Sep 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc