# @ankittiwaari/promise-ssh2

> A simple and lightweight Promise wrapper for ssh2

Latest version **1.0.3** (published 2021-10-04) · GPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @ankittiwaari/promise-ssh2
pnpm add @ankittiwaari/promise-ssh2
yarn add @ankittiwaari/promise-ssh2
bun add @ankittiwaari/promise-ssh2
```

## 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.3 |
| Published | 2021-10-04 |
| First published | 2021-10-02 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ankit Tiwari |
| Maintainers | ankittiwaari |
| Keywords | ssh2, promis, promisify ssh2, ssh2 promise, promise ssh2 |

## Links

- npm: https://www.npmjs.com/package/@ankittiwaari/promise-ssh2
- Repository: https://github.com/ankittiwaari/promisify-ssh2
- Homepage: https://github.com/ankittiwaari/promisify-ssh2#readme
- Issues: https://github.com/ankittiwaari/promisify-ssh2/issues
- npm.io page: https://npm.io/package/@ankittiwaari/promise-ssh2

## Dependencies (1)

- [ssh2](https://npm.io/package/ssh2.md) ^1.4.0

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-10-04
- 1.0.2 — 2021-10-04
- 1.0.1 — 2021-10-04
- 1.0.0 — 2021-10-02

## README

# Promisify ssh2
## A simple and lightweight promise wrapper for ssh2.

### Example
```js
const promisifySSH = require('@ankittiwaari/promise-ssh2');
(async () => {
    try {
        let p = new promisifySSH({
            host: '<host>',
            user: '<user>',
            password: '<password>'
        });
        // create connection
        await p.connect();
        
        // execute connection
        let result = await p.execute('ls');
        console.log('res', result);
        
        //close connection once done
        p.closeConnection();
    } catch (e) {
        console.log(`Error in catch `, e);
    }

})();
```
The constructor accepts all the connection parameters accepted by `connect()` method of [ssh2](https://www.npmjs.com/package/ssh2)
## Raising issues
Raise all the issues at https://github.com/ankittiwaari/promise-ssh2/issues

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