# bettercap

> Bettercap API client for javascript

Latest version **0.0.3** (published 2022-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install bettercap
pnpm add bettercap
yarn add bettercap
bun add bettercap
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2022-08-31 |
| First published | 2022-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 29.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | David Konsumer |
| Maintainers | konsumer |

## Links

- npm: https://www.npmjs.com/package/bettercap
- Repository: https://github.com/konsumer/node-bettercap
- Homepage: https://github.com/konsumer/node-bettercap#readme
- Issues: https://github.com/konsumer/node-bettercap/issues
- npm.io page: https://npm.io/package/bettercap

## Recent versions

- 0.0.3 (latest) — 2022-08-31
- 0.0.2 — 2022-08-31
- 0.0.1 — 2022-08-31

## README

# bettercap

This is a very simple bettercap API client.

It assumes that you have a global `fetch` command, so you will need to use a very new version of node, import something like node-fetch (and make it global) or deno or bun.

## installation

```sh
npm i bettercap cross-fetch
```

## usage

```js
import fetch from 'cross-fetch'
import Bettercap from 'bettercap'

globalThis.fetch = fetch

console.log(await bettercap.command('net.recon on'))
console.log(await bettercap.command('net.show'))
console.log(await bettercap.session())
```

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