@shangzhen/wifi-name
v3.2.0
Published
Get the current Wi-Fi name.
Downloads
19
Readme
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
- wifi-name-cli - CLI for this module
License
MIT © Kevin Mårtensson