diff --git a/README.md b/README.md index 6e474e9..a23bbd2 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,26 @@ # Wifi Password Share +[JSR Package: `@kunkun/kunkun-ext-wifi-password`](https://jsr.io/@kunkun) + ## Platforms + - MacOS - ```bash - networksetup -listpreferredwirelessnetworks en0 - security find-generic-password -D "AirPort network password" -a $SSID -w - ``` + ```bash + networksetup -listpreferredwirelessnetworks en0 + security find-generic-password -D "AirPort network password" -a $SSID -w + ``` - Windows - ```powershell - $_, $ssid = ((netsh wlan show interface | findstr "Profile" | findstr /v "mode") -split ":",2).trim(); - $_, $pass = ((netsh wlan show profile name=$ssid key=clear | findstr Key) -split ":").trim(); - ``` + ```powershell + $_, $ssid = ((netsh wlan show interface | findstr "Profile" | findstr /v "mode") -split ":",2).trim(); + $_, $pass = ((netsh wlan show profile name=$ssid key=clear | findstr Key) -split ":").trim(); + ``` - Linux - ```bash - ssid=$(nmcli device wifi show-password | grep SSID | cut -d : -f 2 | xargs) - password=$(nmcli device wifi show-password | grep Password | cut -d : -f 2 | xargs) - ``` + ```bash + ssid=$(nmcli device wifi show-password | grep SSID | cut -d : -f 2 | xargs) + password=$(nmcli device wifi show-password | grep Password | cut -d : -f 2 | xargs) + ``` ## Features - Reveal Wifi Password from current machine - Generate Connection QR Code, mobile devices can scan to connect directly -