Get the current Wi-Fi name.
This fork refactors wifi-name as an ES module using TypeScript. It also resolves compatibility issues with macOS Sequoia by updating the method used to retrieve the Wi-Fi name.
$ npm install @shangzhen/wifi-name
import { getWifiName } from "@shangzhen/wifi-name";
const wifiName = await getWifiName();
console.log(wifiName);
Returns a Promise
for a string
with the current wifi name.
Returns a string
with the current wifi name.
- wifi-name-cli - CLI for this module
MIT © Kevin Mårtensson