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.
$ npm install @shangzhen/wifi-name
const wifiName = require('@shangzhen/wifi-name');
wifiName().then(name => {
console.log(name);
//=> 'wu-tang lan'
});
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