# cisco-vpn

> Wrapper around the Cisco AnyConnect VPN client.

Latest version **1.0.2** (published 2018-09-19) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install cisco-vpn
pnpm add cisco-vpn
yarn add cisco-vpn
bun add cisco-vpn
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-09-19 |
| First published | 2016-06-16 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Mark Tiedemann |
| Maintainers | marktiedemann |
| Keywords | cisco, anyconnect, virtual, private, network, vpn, client, connect, disconnect |

## Links

- npm: https://www.npmjs.com/package/cisco-vpn
- Repository: https://github.com/MarkTiedemann/cisco-vpn
- Issues: https://github.com/MarkTiedemann/cisco-vpn/issues
- npm.io page: https://npm.io/package/cisco-vpn

## Dependencies (2)

- [tmp](https://npm.io/package/tmp.md) 0.0.33
- [throw-if-missing](https://npm.io/package/throw-if-missing.md) 1.1.0

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-09-19
- 1.0.1 — 2016-06-17
- 1.0.0 — 2016-06-16

## README

# cisco-vpn

**Wrapper around the Cisco AnyConnect VPN client.**

## Installation

```
npm install cisco-vpn
```

## Quickstart

```js
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](http://www.wtfpl.net/) – Do What the F*ck You Want to Public License.

Made with :heart: by [@MarkTiedemann](https://twitter.com/MarkTiedemannDE).

---
_Source: https://npm.io/package/cisco-vpn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
