@shangzhen/wifi-name
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

wifi-name

Get the current Wi-Fi name.

This fork enhances wifi-name by adding TypeScript type definitions, making it easier to be used in TypeScript projects. It also resolves compatibility issues with macOS Sonoma by updating the method used to retrieve the Wi-Fi name.

Install

$ npm install @shangzhen/wifi-name

Usage

const wifiName = require('@shangzhen/wifi-name');

wifiName().then(name => {
	console.log(name);
	//=> 'wu-tang lan'
});

API

wifiName()

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

wifiName.sync()

Returns a string with the current wifi name.

Related

License

MIT © Kevin Mårtensson

Readme

Keywords

Package Sidebar

Install

npm i @shangzhen/wifi-name

Weekly Downloads

1

Version

3.2.0

License

MIT

Unpacked Size

5.93 kB

Total Files

8

Last publish

Collaborators

  • shangzhen