0.0.3 • Published 4 years ago

node-wifi-handler v0.0.3

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

Node Wifi Handler

Node module to work with the Wi-Fi inspired on node-wifi with TypeScript support and other features (WPA Personal and WPA enterprise).

Nowadays it's Work In Progress but

FeaturesLinuxMacWindows
Connect - WPA Personal:heavy_check_mark:WIPWIP
Connect - WPA Enterpise - EAP 13:heavy_check_mark:WIPWIP
Connect - WPA Enterpise - EAP 21:heavy_check_mark:WIPWIP
Connect - WPA Enterpise - EAP 23:heavy_check_mark:WIPWIP
Scan:heavy_check_mark:WIP:heavy_check_mark:
List current wifi connections:heavy_check_mark:WIP:heavy_check_mark:
Delete connection information:heavy_check_mark:WIPWIP

Depending on the OS System, some native tools are used:


Install

# Use as a module
npm install node-wifi-handler

# Use as a CLI
npm install node-wifi-handler -g

Getting started

import WifiHandler from "node-wifi-handler"

const handler: WifiHandler = WifiWrapper.getWifiHandler();

const profile: WifiProfile = WifiProfileFactory.getInstance({
                                     ssid: 'myssid',
                                     password: 'myhomessidpassword',
                                     type: WifiProfile.PERSONAL
                                 });

handler.createNetwork(profile)
    .then(output => console.log('Profile configured'))
    .catch(err => console.error('An error occurred'));

Contribute

Please feel free to provide a pull request or create any needed issue.

License

MIT