1.0.1 • Published 1 year ago

wifiscan v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Wifiscan

License: MIT NPM Version Tests Custom badge NPM Install Size NPM Downloads

Library to get the received signal strength indicator (RSSI) from Wi-Fi networks.

Dependencies

$ sudo apt install wireless-tools

Installation

Simply install wifiscan library from NPM

$ npm install wifiscan

Examples

const { getInterface, scanNetworks } = require('wifiscan');

// Getting the default Network Interface
const iface = getInterface();

const networks = scanNetworks(iface);

console.log(networks);
/**
 * {
 *   'networkName0': -70,
 *   'networkName1': -75,
 *   ...
 *   'networkNameN': -91
 * }
 */