Last 12 weeks · 0 commits
4 of 6 standards met
Description Added windows support without intervening with the existing structure of the code. Used Powershell Commands This command is used to get the network adapter. This command is used to filter the information coming from the Get-NetAdapter command, in order to fetch PnPDevice id. This command is used to get on/off status of the adapter. This command is used to set on/off status of the adapter. This command is used to get powershell with elevated privileges. Which is necessary for changing the on/off status of the wireless adapter. Changes on Tests Added windows compatibility. Added wireless adapter check via PCI/USB regex. Additional Notes is added to the . The reasoning behind that is, windows needs more time to turn on/off the wifi, when compared to macOS. While testing with ava, odd issue spotted in Windows 10. Unless the additional statement added, the test failed. This is also shown inside the as a comment. Windows will always pop-up UAC Prompt. It is the default behavior, so no workarounds are added. Thank you for your time to consider this pull request.
Repository: sindresorhus/manage-wifi. Description: Turn your Wi-Fi on and off Stars: 87, Forks: 7. Primary language: JavaScript. Languages: JavaScript (90.7%), TypeScript (9.3%). License: MIT. Latest release: v2.1.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 71%. Top contributors: sindresorhus, atakanatamert, fregante, LucPan0, Richienb.