Get the Current Wifi Password with Node

2016-05-18

Here is a library to retrieve some of your known wifi passwords in Node.

Installation

Install the wifi-password library like so:

1
$ npm install wifi-password --save

Usage

Get your current Wifi password

Pretty straightforward:

1
2
3
4
5
const wifiPassword = require('wifi-password');

wifiPassword().then(password => {
console.log(password);
});

Get another known Wifi password

Simply pass the Wifi SSID as a parameter:

1
2
3
4
5
const wifiPassword = require('wifi-password');

wifiPassword('Wireless@CodeBlocQ').then(password => {
console.log(password);
});