Skip to content

shangzhenyang/wifi-name

 
 

Repository files navigation

wifi-name

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.

Install

$ npm install @shangzhen/wifi-name

Usage

import { getWifiName } from "@shangzhen/wifi-name";

const wifiName = await getWifiName();
console.log(wifiName);

API

getWifiName()

Returns a Promise for a string with the current wifi name.

getWifiNameSync()

Returns a string with the current wifi name.

Related

License

MIT © Kevin Mårtensson

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.0%
  • JavaScript 18.0%