3.2.0 • Published 1 month ago

@shangzhen/wifi-name v3.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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

3.2.0

1 month ago