From 09aaf3fdbd0b04c9281f776ec909567225a8c412 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Sat, 18 Jan 2025 06:05:52 -0500 Subject: [PATCH] Enhance README.md formatting for code blocks and add JSR package link for `@kunkun/kunkun-ext-wifi-password` --- README.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) 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 -