Get current wifi password
$ npm install --save wifi-password
const wifiPassword = require('wifi-password');
wifiPassword().then(password => {
console.log(password);
//=> 'johndoesecretpassword'
});
Returns a promise that resolves to a string containing the password.
Type: string
Get the wifi password for a specified known network.
$ npm install --global wifi-password
$ wifi-password --help
Usage
$ wifi-password
johndoesecretpassword
$ wifi-password foo-network
foosecretpassword
MIT © Kevin Mårtensson