wpa-editor
- #### Install
- #### Description
- #### How to use
- #### Options
Install
npm install wpa-editor -save
Description
Scan and edit wpa supplicant config file from NodeJS.
How to use
const wpa = ;var wifi = ;//scan and return all ssid visible in arraywifi//edit wpa-supplicant config file (/etc/wpa_supplicant/wpa_supplicant.conf)//param: SSID[string], password[string]wifi;
Options
var wifi = interfaces : "wlan0" //Default wifi interface configFilePathname : "/etc/wpa_supplicant/wpa_supplicant.conf" //wpa-supplicant config file location regex : /^\nnetwork={1,}\}$/gm //parse network in file location ;