wifi-password

June 21, 2017 · View on GitHub

Get current wifi password

Install

$ npm install wifi-password

Usage

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

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

API

wifiPassword([name])

Returns a promise that resolves to a string containing the password.

name

Type: string

Get the wifi password for a specified known network.

Related

  • wifi-password-cli - CLI for this module.

License

MIT © Kevin Mårtensson

Contents

  1. 1Install
  2. 2Usage
  3. 3API
  4. 3.1wifiPassword([name])
  5. 4Related
  6. 5License