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

Installation

Install the wifi-password library like so:

$ npm install wifi-password --save

Usage

Get your current Wifi password

Pretty straightforward:

const wifiPassword = require('wifi-password');

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

Get another known Wifi password

Simply pass the Wifi SSID as a parameter:

const wifiPassword = require('wifi-password');

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