Skip to content

konsumer/node-bettercap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bettercap

This is a very simple bettercap API client.

installation

npm i bettercap cross-fetch

usage

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())

You can leave out the fetch polyfill if you run with node --experimental-fetch, 'deno --allow-net', or bun:

// for bun
import Bettercap from 'bettercap'

// for deno
import Bettercap from 'npm:bettercap'

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

About

Node Bettercap API client

Resources

Stars

Watchers

Forks

Packages

No packages published